From a1aae38243d99d55af774eb426a2aa6018962f4d Mon Sep 17 00:00:00 2001 From: seki Date: Sun, 16 Oct 2005 05:43:19 +0000 Subject: check remote hash tuple git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rinda/test_rinda.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/rinda') 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 -- cgit