summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-01 05:10:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-01 05:10:36 +0000
commitd988d0945804becf3e3196ff5b67aa3ee31de788 (patch)
tree8bad92b8eae8b8df1c65efdc4ce3a42546282b2a /test
parent3888bfecf2c193658bb11af3609671d91a44b778 (diff)
* 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
Diffstat (limited to 'test')
-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('//'))