diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-08 09:44:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-08 09:44:46 +0000 |
commit | 44cdb4050dbdcc792f32b5df5471bd4c613dc5a6 (patch) | |
tree | 387c943bed46231c2ef278be2841352b696fee07 /test/stringio | |
parent | cb244d26a95ef0a9f6f01e73c112593c81735fa3 (diff) | |
download | ruby-44cdb4050dbdcc792f32b5df5471bd4c613dc5a6.tar.gz ruby-44cdb4050dbdcc792f32b5df5471bd4c613dc5a6.tar.xz ruby-44cdb4050dbdcc792f32b5df5471bd4c613dc5a6.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/trunk@6873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/stringio')
-rw-r--r-- | test/stringio/test_stringio.rb | 2 |
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] |