From 555d477d2e0fcc8787398113d4c41dff9b32243c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 12 Aug 2017 01:34:13 +0000 Subject: test_stringio.rb: more assertions * test/stringio/test_stringio.rb (test_read): add assertions of return value of read with a buffer string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/stringio/test_stringio.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/stringio') diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index 667fe3ea81..99548d676d 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -570,12 +570,12 @@ class TestStringIO < Test::Unit::TestCase assert_equal("\u3042\u3044", f.read(nil, nil), bug5207) f.rewind s = "" - f.read(nil, s) + assert_same(s, f.read(nil, s)) assert_equal("\u3042\u3044", s, bug5207) f.rewind # not empty buffer s = "0123456789" - f.read(nil, s) + assert_same(s, f.read(nil, s)) assert_equal("\u3042\u3044", s) end -- cgit v1.2.3