Skip to content

Commit 97c12cc

Browse files
committed
add more test coverage for [ruby-core:63136] [Bug ruby#9934]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b74a7d3 commit 97c12cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/ruby/test_file_exhaustive.rb

+2
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ def test_expand_path_memsize
463463
require "objspace"
464464
path = File.expand_path("/foo")
465465
assert_operator(ObjectSpace.memsize_of(path), :<=, path.bytesize, bug9934)
466+
path = File.expand_path("/a"*25)
467+
assert_equal(51, ObjectSpace.memsize_of(path), bug9934)
466468
end
467469

468470
def test_expand_path_encoding

0 commit comments

Comments
 (0)