diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-13 20:14:04 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-13 20:14:04 +0000 |
commit | 6d9b5fdffcfe2fc2783c5b03f93e2deb372fd260 (patch) | |
tree | 24f93de60715359fee8da2b18b37bb2fd3aa5c84 /test/pathname | |
parent | 1428b74ff9acdfb435b8bddf3d19e3b50868dfd8 (diff) |
* ext/pathname/pathname.c (path_s_glob): Pathname.glob translated
from pathname.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/pathname')
-rw-r--r-- | test/pathname/test_pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index 55ef46690d..340af2423d 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -1152,6 +1152,10 @@ class TestPathname < Test::Unit::TestCase open("f", "w") {|f| f.write "abc" } Dir.mkdir("d") assert_equal([Pathname("d"), Pathname("f")], Pathname.glob("*").sort) + a = [] + Pathname.glob("*") {|path| a << path } + a.sort! + assert_equal([Pathname("d"), Pathname("f")], a) } end |