1
0
Fork 0
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:
nobu 2014-06-15 01:09:19 +00:00
parent efc70c74c2
commit 106f3e9d17

View file

@ -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