diff options
author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-16 05:43:19 +0000 |
---|---|---|
committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-16 05:43:19 +0000 |
commit | 898f094d8dc58ceafb1329784cc5c2c01f12f710 (patch) | |
tree | 94cf98d22e19e7484a25c65b769f683ee645e671 /test/rinda | |
parent | 6de9ca76512b616df2575c83dd11ea472a10755b (diff) | |
download | ruby-898f094d8dc58ceafb1329784cc5c2c01f12f710.tar.gz |
check remote hash tuple
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r-- | test/rinda/test_rinda.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index 86e161e0cd..d663e0446d 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -510,6 +510,14 @@ class TupleSpaceProxyTest < Test::Unit::TestCase @ts = Rinda::TupleSpaceProxy.new(@ts_base) end + def test_remote_array_and_hash + @ts.write(DRbObject.new([1, 2, 3])) + assert_equal([1, 2, 3], @ts.take([1, 2, 3], 0)) + @ts.write(DRbObject.new({'head' => 1, 'tail' => 2})) + assert_equal({'head' => 1, 'tail' => 2}, + @ts.take({'head' => 1, 'tail' => 2}, 0)) + end + @server = DRb.primary_server || DRb.start_service end |