summaryrefslogtreecommitdiffstats
path: root/test/stringio
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-11 17:50:03 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-11 17:50:03 +0000
commitd11863b154967fb258e6b1465657391f3bb5d08b (patch)
tree40d3edc49cd94ff99b3f43f73bcc5fcbdff820b9 /test/stringio
parent7976a9a48eb1faca3f5fdbe2d880bcf4c1e36cbd (diff)
downloadruby-d11863b154967fb258e6b1465657391f3bb5d08b.tar.gz
ruby-d11863b154967fb258e6b1465657391f3bb5d08b.tar.xz
ruby-d11863b154967fb258e6b1465657391f3bb5d08b.zip
* ext/stringio/stringio.c (strio_init): rewind when reopened.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/stringio')
-rw-r--r--test/stringio/test_stringio.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index d022c10fa..8f0dc8702 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -252,11 +252,11 @@ class TestStringIO < Test::Unit::TestCase
f = StringIO.new("foo\nbar\nbaz\n")
assert_equal("foo\n", f.gets)
f.reopen("qux\nquux\nquuux\n")
- assert_equal("quux\n", f.gets)
+ assert_equal("qux\n", f.gets)
f2 = StringIO.new("")
f2.reopen(f)
- assert_equal("quuux\n", f2.gets)
+ assert_equal("quux\n", f2.gets)
ensure
f.close unless f.closed?
end