ruby-changes:47459
From: nobu <ko1@a...>
Date: Sat, 12 Aug 2017 10:34:18 +0900 (JST)
Subject: [ruby-changes:47459] nobu:r59576 (trunk): test_stringio.rb: more assertions
nobu 2017-08-12 10:34:13 +0900 (Sat, 12 Aug 2017) New Revision: 59576 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59576 Log: test_stringio.rb: more assertions * test/stringio/test_stringio.rb (test_read): add assertions of return value of read with a buffer string. Modified files: trunk/test/stringio/test_stringio.rb Index: test/stringio/test_stringio.rb =================================================================== --- test/stringio/test_stringio.rb (revision 59575) +++ test/stringio/test_stringio.rb (revision 59576) @@ -570,12 +570,12 @@ class TestStringIO < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/stringio/test_stringio.rb#L570 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/