summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-13 14:06:50 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-13 14:06:50 +0000
commit8326d11b894cc78c02a701cf14e96a1e6f61e307 (patch)
tree5a9c6c7fc8d0892164fc8c5bceaaaf2d7e93c800 /test
parentec46200dff1a2a3e1800f018325a70d516dcceb5 (diff)
downloadruby-8326d11b894cc78c02a701cf14e96a1e6f61e307.tar.gz
ruby-8326d11b894cc78c02a701cf14e96a1e6f61e307.tar.xz
ruby-8326d11b894cc78c02a701cf14e96a1e6f61e307.zip
change pattern matching [druby-ja:98]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rinda/test_rinda.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index a87c66258..684e44f4f 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -26,11 +26,12 @@ module TupleSpaceTestModule
assert(tmpl.match(['Rinda', 2, :hello]))
assert(!tmpl.match(['Rinda', 2, Symbol]))
assert(!tmpl.match([1, 2, :hello]))
+ assert(tmpl.match([/^rinda/i, nil, :hello]))
tmpl = Rinda::Template.new([Symbol])
assert_equal(1, tmpl.size)
assert(tmpl.match([:hello]))
- assert(!tmpl.match([Symbol]))
+ assert(tmpl.match([Symbol]))
assert(!tmpl.match(['Symbol']))
tmpl = Rinda::Template.new({"message"=>String, "name"=>String})