summaryrefslogtreecommitdiff
path: root/test/pathname
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-16 12:40:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-16 12:40:10 +0000
commit16cd13c05188bf52c5dfb056f02ebf4574bb1bc3 (patch)
treef677d7e3a505c3d32a0c0d6283eeaf2edee90ab9 /test/pathname
parent66c25e4ca14fda15c4a0d5cd619e573060ebd756 (diff)
* ext/pathname/pathname.c (path_basename): Pathname#basename translated
from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r--test/pathname/test_pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 25e0423..125eb39 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -915,6 +915,7 @@ class TestPathname < Test::Unit::TestCase
def test_basename
assert_equal(Pathname("basename"), Pathname("dirname/basename").basename)
+ assert_equal(Pathname("bar"), Pathname("foo/bar.x").basename(".x"))
end
def test_dirname