diff options
Diffstat (limited to 'test/ruby/test_path.rb')
-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 0489e7fe8..fb58f6556 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('//')) |