aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-28 21:59:54 +0900
committergit <svn-admin@ruby-lang.org>2023-01-28 13:00:08 +0000
commit21dced8b01823a991829b66ffdc8ffc635965c76 (patch)
tree790fb5251357df26610e9916191f05b1606a1f27 /test
parent8429134d0d942f89fa022af38e065eb33c83523a (diff)
downloadruby-21dced8b01823a991829b66ffdc8ffc635965c76.tar.gz
[ruby/stringio] [Bug #19389] Fix chomping with longer separator
https://github.com/ruby/stringio/commit/eb322a9716
Diffstat (limited to 'test')
-rw-r--r--test/stringio/test_stringio.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index 34c4748185..fd9974caeb 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -99,6 +99,8 @@ class TestStringIO < Test::Unit::TestCase
assert_equal("def\n", stringio.gets("", chomp: true))
assert_string("", Encoding::UTF_8, StringIO.new("\n").gets(chomp: true))
+
+ assert_equal("", StringIO.new("ab").gets("ab", chomp: true))
end
def test_gets_chomp_eol