mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_file.rb (TestFile::test_fnmatch): added tests for
File.fnmatch. [ruby-dev:22815][ruby-dev:22819] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
54d612c27f
commit
4ca30a130d
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Feb 8 15:51:57 2004 akira yamada <akira@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_file.rb (TestFile::test_fnmatch): added tests for
|
||||
File.fnmatch. [ruby-dev:22815][ruby-dev:22819]
|
||||
|
||||
Sun Feb 8 15:41:45 2004 akira yamada <akira@ruby-lang.org>
|
||||
|
||||
* test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue