mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_file_exhaustive.rb: fix assertion
* test/ruby/test_file_exhaustive.rb (test_expand_path_memsize): wrong expected value, considering a prefix (drive letter or UNC) on DOSISH platforms. [Bug #9934] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
efc70c74c2
commit
106f3e9d17
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(51, ObjectSpace.memsize_of(path), bug9934)
|
||||
assert_equal(path.bytesize, ObjectSpace.memsize_of(path), bug9934)
|
||||
end
|
||||
|
||||
def test_expand_path_encoding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue