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:
parent
fe017d1450
commit
faabbf230a
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue