summaryrefslogtreecommitdiff
path: root/test/ruby/test_path.rb
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
commitab8c535ea3b24f9e6a1f65bc0eb8c41475e4da47 (patch)
treea997ecf498a4b8037495a4d1861297a37433cf49 /test/ruby/test_path.rb
parent61cf551cb7871dc7b155d41a80d0ccc272ffe167 (diff)
* test/ruby/test_path.rb (test_basename): test for r19595.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 63dbd07346..7b644727db 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|djgpp|human|emx/ =~ RUBY_PLATFORM
# DOSISH_UNC
assert_equal('/', File.basename('//'))