summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-11 14:48:50 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-11 14:48:50 +0000
commit3fe82505450e5fd1f7de4fbfc428e47fd0cf5969 (patch)
tree982ec9abe98ec2570b966dbf9426117bcb8041d8 /test
parent9d7f33e08b59b74b9c19f2d8cfc1ff5077e91697 (diff)
adhoc patch for [druby-ja:123]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/drb/test_drb.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb
index 468c970..5719f60 100644
--- a/test/drb/test_drb.rb
+++ b/test/drb/test_drb.rb
@@ -102,6 +102,15 @@ class TestDRbYield < Test::Unit::TestCase
@there.xarray_each {|x| assert_kind_of(XArray, x)}
@there.xarray_each {|*x| assert_kind_of(XArray, x[0])}
end
+
+ def test_06_taint
+ x = proc {}
+ assert(! x.tainted?)
+ @there.echo_yield(x) {|o|
+ assert_equal(x, o)
+ assert(! x.tainted?)
+ }
+ end
end
class TestRubyYield < TestDRbYield