diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-12 01:34:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-12 01:34:13 +0000 |
commit | 555d477d2e0fcc8787398113d4c41dff9b32243c (patch) | |
tree | 0a6815af9b059b5cec9e28cd8ec36268175be7ba /test/stringio | |
parent | 47db9cb456c343e9a5b253fb67cd8ef174666f11 (diff) |
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
Diffstat (limited to 'test/stringio')
-rw-r--r-- | test/stringio/test_stringio.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |