summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-30 22:12:40 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-30 22:12:40 +0000
commit4ee11189ff0d89c55ae8fe4fd953a8d13b8e068a (patch)
tree11c4a33dc22b2cc340a6b36e2fdfb4dfa39511c3 /test
parente94082872b68dae6e4215384702b7d3e0423c070 (diff)
should find a symbol by Symbol class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rinda/test_rinda.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index 6da6c3b73e..c0f93733c0 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -253,6 +253,14 @@ module TupleSpaceTestModule
end
end
+ def test_symbol_tuple
+ @ts.write([:symbol, :symbol])
+ @ts.write(['string', :string])
+ assert_equal([[:symbol, :symbol]], @ts.read_all([:symbol, nil]))
+ assert_equal([[:symbol, :symbol]], @ts.read_all([Symbol, nil]))
+ assert_equal([], @ts.read_all([:nil, nil]))
+ end
+
def test_core_01
5.times do |n|
@ts.write([:req, 2])