From d822ffdc04e125d19daeeef71bc100377cf54e0b Mon Sep 17 00:00:00 2001 From: seki Date: Mon, 11 Apr 2005 14:48:50 +0000 Subject: adhoc patch for [druby-ja:123] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/drb/test_drb.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/drb') diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb index 468c97017d..5719f60b80 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 -- cgit v1.2.3