From 4ca30a130d7baef02d0c91a1846beab68e954bae Mon Sep 17 00:00:00 2001 From: akira Date: Sun, 8 Feb 2004 06:52:45 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ test/ruby/test_file.rb | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7a9d5c3080..4b8a44575d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Feb 8 15:51:57 2004 akira yamada + + * 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 * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle): diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 09d6c52023..375ff66721 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