diff options
Diffstat (limited to 'test/stringio/test_stringio.rb')
-rw-r--r-- | test/stringio/test_stringio.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index 8faf4d8acc..7b9b1105d1 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -96,6 +96,8 @@ class TestStringIO < Test::Unit::TestCase stringio = StringIO.new("abc\n\ndef\n") assert_equal("abc\n", stringio.gets("", chomp: true)) assert_equal("def", stringio.gets("", chomp: true)) + + assert_string("", Encoding::UTF_8, StringIO.new("\n").gets(chomp: true)) end def test_gets_chomp_eol |