diff options
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 |