diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-01 05:10:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-01 05:10:36 +0000 |
commit | d988d0945804becf3e3196ff5b67aa3ee31de788 (patch) | |
tree | 8bad92b8eae8b8df1c65efdc4ce3a42546282b2a | |
parent | 3888bfecf2c193658bb11af3609671d91a44b778 (diff) | |
download | bundler-d988d0945804becf3e3196ff5b67aa3ee31de788.tar.gz |
* 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
-rw-r--r-- | test/ruby/test_path.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_path.rb b/test/ruby/test_path.rb index 0489e7fe8c..fb58f65561 100644 --- a/test/ruby/test_path.rb +++ b/test/ruby/test_path.rb @@ -189,6 +189,8 @@ class TestPath < Test::Unit::TestCase assert_equal('a', File.basename('/a/')) assert_equal('b', File.basename('/a/b')) + assert_equal("..", File.basename("..", ".*")) + if /(bcc|ms|cyg)win|mingw|emx/ =~ RUBY_PLATFORM # DOSISH_UNC assert_equal('/', File.basename('//')) |