From 7b1be71bf06f6b92a8a51534ec094d7eddb0e608 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 8 Sep 2004 09:44:46 +0000 Subject: * 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/branches/ruby_1_8@6873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/stringio/test_stringio.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/stringio') diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index cdb35e6acc..fee305e856 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] -- cgit v1.2.3