1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.

[ruby-dev:24190]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2004-09-08 09:44:46 +00:00
parent 3d8690ebdb
commit a838eb5c65
3 changed files with 15 additions and 8 deletions

View file

@ -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]