summaryrefslogtreecommitdiff
path: root/test/drb/drbtest.rb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-30 13:30:48 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-30 13:30:48 +0000
commit1eb2a60a3dd8d1bf169251966a356265bb3c0451 (patch)
treee7aae2f5478c3c853522584dc462eea343b249c1 /test/drb/drbtest.rb
parent6350cbb1b280dd12d7230cc2a176e6d9f722c38b (diff)
add test Hash#each, and change load_limit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb/drbtest.rb')
-rw-r--r--test/drb/drbtest.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index ed952b5751d..efbdb5b5a63 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -127,7 +127,7 @@ module DRbCore
@there.sum(1, 1, 1, 1, 1, 1, 1, 1, 1)
end
assert_raises(DRb::DRbConnError) do
- @there.sum('1' * 2048)
+ @there.sum('1' * 4096)
end
end
@@ -215,8 +215,15 @@ module DRbCore
assert_equal(DRb::DRbURIOption.new('?hello?world'), ro.__drbref)
end
+ def test_10_yield
+ @there.simple_hash.each do |k, v|
+ assert_kind_of(String, k)
+ assert_kind_of(Symbol, v)
+ end
+ end
+
def test_10_yield_undumped
- @there.xarray2_hash.each_pair do |k, v|
+ @there.xarray2_hash.each do |k, v|
assert_kind_of(String, k)
assert_kind_of(DRbObject, v)
end