summaryrefslogtreecommitdiffstats
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
commit5e78aa56f29ee3d0655e7bb160b4acebe7c3479c (patch)
tree8bad92b8eae8b8df1c65efdc4ce3a42546282b2a /test
parenta67c6eee7819a21fa6baeffecd6915525ebc35ca (diff)
downloadruby-5e78aa56f29ee3d0655e7bb160b4acebe7c3479c.tar.gz
ruby-5e78aa56f29ee3d0655e7bb160b4acebe7c3479c.tar.xz
ruby-5e78aa56f29ee3d0655e7bb160b4acebe7c3479c.zip
* test/ruby/test_path.rb (test_basename): test for r19595.
git-svn-id: http://svn.ruby-lang.org/repos/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 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('//'))