diff options
author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-13 14:06:50 +0000 |
---|---|---|
committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-13 14:06:50 +0000 |
commit | dae0bfcf376fa0fb32fdde10587a8fb255cf1d00 (patch) | |
tree | c32d9ab64c2dee4abafdbd71ddb8eb4206aff9f3 /test/rinda | |
parent | e022b74520978ad11e4db30aece8403099199e94 (diff) | |
download | ruby-dae0bfcf376fa0fb32fdde10587a8fb255cf1d00.tar.gz |
change pattern matching [druby-ja:98]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r-- | test/rinda/test_rinda.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index a87c66258c..684e44f4f1 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}) |