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

* test/ruby/test_path.rb (test_extname): test for r19596.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-01 05:16:14 +00:00
parent fe017d1450
commit faabbf230a

View file

@ -223,4 +223,13 @@ class TestPath < Test::Unit::TestCase
assert_equal('c', File.basename('///a/b/c'))
end
end
def test_extname
assert_equal('', File.extname('a'))
assert_equal('.rb', File.extname('a.rb'))
assert_equal('', File.extname('a.rb.'))
assert_equal('', File.extname('a.'))
assert_equal('', File.extname('.x'))
assert_equal('', File.extname('..x'))
end
end