diff options
author | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-08 06:52:45 +0000 |
---|---|---|
committer | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-08 06:52:45 +0000 |
commit | 018f5509fad087f324fa777de1b7ed8fba6ccf07 (patch) | |
tree | 45a11484cc11c2bc5efe871d51ce800bf9c2595e /test/ruby | |
parent | 7c3eb8b18c748a13ab59345fd2bccae704b04df4 (diff) | |
download | ruby-018f5509fad087f324fa777de1b7ed8fba6ccf07.tar.gz ruby-018f5509fad087f324fa777de1b7ed8fba6ccf07.tar.xz ruby-018f5509fad087f324fa777de1b7ed8fba6ccf07.zip |
* test/ruby/test_file.rb (TestFile::test_fnmatch): added tests for
File.fnmatch. [ruby-dev:22815][ruby-dev:22819]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_file.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 09d6c5202..375ff6672 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -42,4 +42,10 @@ class TestFile < Test::Unit::TestCase alias open_file_rw open_file include TestEOF::Seek + + def test_fnmatch + # from [ruby-dev:22815] and [ruby-dev:22819] + assert(true, File.fnmatch('\[1\]' , '[1]')) + assert(true, File.fnmatch('*?', 'a')) + end end |