diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-15 01:09:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-15 01:09:19 +0000 |
commit | 106f3e9d17d89fe15e9b374f5ec80aa539d4c9d9 (patch) | |
tree | a030a3ed71e33799f101b50f3924d60d095f9d53 | |
parent | efc70c74c215ddecc58d53fc7dcf9925a9f631ac (diff) | |
download | ruby-106f3e9d17d89fe15e9b374f5ec80aa539d4c9d9.tar.gz |
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
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index a64a956afd..4cdb82ed9f 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -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 |