diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-07 22:33:51 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-07 22:33:51 +0000 |
commit | b50fb9034e8efd45319ce6ac3c7984bf98b548de (patch) | |
tree | b5f0f1cf64813d7030f2a408bd6034ef735e77bc /test/pathname | |
parent | d82dd262d076c4b43fdc95c9c648badf3dec5692 (diff) |
* ext/pathname/pathname.c (path_fnmatch): Pathname#fnmatch and
Pathname#fnmatch? translated from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index c34d61f408..318e06b640 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -788,6 +788,8 @@ class TestPathname < Test::Unit::TestCase path = Pathname("a") assert_equal(true, path.fnmatch("*")) assert_equal(false, path.fnmatch("*.*")) + assert_equal(false, Pathname(".foo").fnmatch("*")) + assert_equal(true, Pathname(".foo").fnmatch("*", File::FNM_DOTMATCH)) end def test_fnmatch? |