diff options
| author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-11 14:48:50 +0000 |
|---|---|---|
| committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-11 14:48:50 +0000 |
| commit | b0c886f01a1c10dc912040018b4fbe52193e90f6 (patch) | |
| tree | 5461c4b1c25c72930566f4d0d0800383bac482c9 /test | |
| parent | 5744658590426ac716fff6b45dd006071915176f (diff) | |
| download | ruby-b0c886f01a1c10dc912040018b4fbe52193e90f6.tar.gz ruby-b0c886f01a1c10dc912040018b4fbe52193e90f6.tar.xz ruby-b0c886f01a1c10dc912040018b4fbe52193e90f6.zip | |
adhoc patch for [druby-ja:123]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/drb/test_drb.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb index 468c97017..5719f60b8 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 |
