1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add more test coverage for [ruby-core:63136] [Bug #9934]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tmm1 2014-06-13 00:00:03 +00:00
parent 85bbacbba2
commit 559a827579

View file

@ -463,6 +463,8 @@ class TestFileExhaustive < Test::Unit::TestCase
require "objspace"
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)
end
def test_expand_path_encoding