diff options
| author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-16 05:36:26 +0000 |
|---|---|---|
| committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-16 05:36:26 +0000 |
| commit | 77f887aa89ad4c32726f78e564f7d23948675884 (patch) | |
| tree | 13663bce70224958c6a3fe2536dbc268e204fcc9 /test | |
| parent | 954509a49c077d7b2da1ca150a9dc0eebcb49d16 (diff) | |
| download | ruby-77f887aa89ad4c32726f78e564f7d23948675884.tar.gz ruby-77f887aa89ad4c32726f78e564f7d23948675884.tar.xz ruby-77f887aa89ad4c32726f78e564f7d23948675884.zip | |
check remote hash tuple
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -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 86e161e0c..d663e0446 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 |
