ruby-changes:34356
From: nobu <ko1@a...>
Date: Sun, 15 Jun 2014 20:49:32 +0900 (JST)
Subject: [ruby-changes:34356] nobu:r46437 (trunk): test_file_exhaustive.rb: fix expected value
nobu 2014-06-15 20:49:25 +0900 (Sun, 15 Jun 2014) New Revision: 46437 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46437 Log: test_file_exhaustive.rb: fix expected value * test/ruby/test_file_exhaustive.rb (test_expand_path_memsize): correct expected value, count terminator byte. [Bug #9934] Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 46436) +++ test/ruby/test_file_exhaustive.rb (revision 46437) @@ -464,7 +464,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L464 path = File.expand_path("/foo") assert_operator(ObjectSpace.memsize_of(path), :<=, path.bytesize, bug9934) path = File.expand_path("/a"*25) - assert_equal(path.bytesize, ObjectSpace.memsize_of(path), bug9934) + assert_equal(path.bytesize+1, ObjectSpace.memsize_of(path), bug9934) end def test_expand_path_encoding -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/