mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_path.rb (test_basename): test for r19595.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3888bfecf2
commit
d988d09458
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,8 @@ class TestPath < Test::Unit::TestCase
|
||||||
assert_equal('a', File.basename('/a/'))
|
assert_equal('a', File.basename('/a/'))
|
||||||
assert_equal('b', File.basename('/a/b'))
|
assert_equal('b', File.basename('/a/b'))
|
||||||
|
|
||||||
|
assert_equal("..", File.basename("..", ".*"))
|
||||||
|
|
||||||
if /(bcc|ms|cyg)win|mingw|emx/ =~ RUBY_PLATFORM
|
if /(bcc|ms|cyg)win|mingw|emx/ =~ RUBY_PLATFORM
|
||||||
# DOSISH_UNC
|
# DOSISH_UNC
|
||||||
assert_equal('/', File.basename('//'))
|
assert_equal('/', File.basename('//'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue