Add test to ensure #5077

parent 4e158320
......@@ -51,6 +51,8 @@ assert('File.extname') do
assert_equal '', File.extname('foo/.bar')
assert_equal '', File.extname('foo.txt/bar')
assert_equal '', File.extname('.foo')
assert_equal '.rb', File.extname('.a.rb')
assert_equal '.', File.extname('foo.')
end
assert('File#flock') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment