1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-07-27 12:57:46 +02:00
parent 5c276e1cc9
commit 7b727e30fc

View file

@ -73,10 +73,10 @@ describe :io_write, shared: true do
File.open(@filename, "w") do |f|
f.set_encoding(Encoding::IBM437)
# A character whose codepoint differs between UTF-8 and IBM437
f.write "ƒ\n".freeze
f.write "ƒ".freeze
end
File.binread(@filename).bytes.should == [159, 10]
File.binread(@filename).bytes.should == [159]
end
describe "on a pipe" do