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