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_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:
nobu 2009-03-01 05:10:36 +00:00
parent 3888bfecf2
commit d988d09458

View file

@ -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('//'))