aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_path.rb')
-rw-r--r--test/ruby/test_path.rb2
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('//'))