diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-16 12:40:10 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-16 12:40:10 +0000 |
commit | 16cd13c05188bf52c5dfb056f02ebf4574bb1bc3 (patch) | |
tree | f677d7e3a505c3d32a0c0d6283eeaf2edee90ab9 /test/pathname | |
parent | 66c25e4ca14fda15c4a0d5cd619e573060ebd756 (diff) | |
download | ruby-16cd13c05188bf52c5dfb056f02ebf4574bb1bc3.tar.gz |
* 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.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 25e0423033..125eb39509 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 |