summaryrefslogtreecommitdiffstats
path: root/test/stringio/test_stringio.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-08 09:44:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-08 09:44:46 +0000
commit134fd51203fe569ff0bb98840dea65a3d9b8d639 (patch)
treea7c1610b7d2f4fc78f74ec4c118a6480a03e112c /test/stringio/test_stringio.rb
parent84e6661cb308c61912793c4f258d28b8bb777282 (diff)
downloadruby-134fd51203fe569ff0bb98840dea65a3d9b8d639.tar.gz
ruby-134fd51203fe569ff0bb98840dea65a3d9b8d639.tar.xz
ruby-134fd51203fe569ff0bb98840dea65a3d9b8d639.zip
* ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.
[ruby-dev:24190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/stringio/test_stringio.rb')
-rw-r--r--test/stringio/test_stringio.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index cdb35e6ac..fee305e85 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -20,7 +20,7 @@ class TestStringIO < Test::Unit::TestCase
io.puts "abc"
io.truncate(0)
io.puts "def"
- assert_equal("\0\0\0def\n", io.string)
+ assert_equal("\0\0\0\0def\n", io.string)
end
def test_seek_beyond_eof # [ruby-dev:24194]