diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-11 07:56:38 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-11 07:56:38 +0000 |
commit | 0935d9536957260d33db5546145c4397912c717e (patch) | |
tree | c2558a8781ba3a81e062e597532878e93f14cf2e /test/ruby | |
parent | f6f53011791183b461d748e3fec283f52a9c5394 (diff) | |
download | ruby-0935d9536957260d33db5546145c4397912c717e.tar.gz |
* test/ruby/test_file.rb (test_truncate_wbuf): we want to test
only File#truncate, not behavior of seek(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 4459c3edd9..1a12491fc2 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -228,11 +228,11 @@ class TestFile < Test::Unit::TestCase def test_truncate_wbuf # [ruby-dev:24191] f = Tempfile.new("test-truncate") - f.puts "abc" + f.print "abc" f.truncate(0) - f.puts "def" + f.print "def" f.close - assert_equal("\0\0\0\0def\n", File.read(f.path)) + assert_equal("\0\0\0def", File.read(f.path)) end def test_truncate_rbuf # [ruby-dev:24197] |