mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
106f3e9d17
commit
f3db73f107
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue