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:
parent
3d8690ebdb
commit
a838eb5c65
3 changed files with 15 additions and 8 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue