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 | dac2a348597f309e6a28dd631c71b613e1caefc4 (patch) | |
| tree | 982ec9abe98ec2570b966dbf9426117bcb8041d8 /test | |
| parent | 8af7287d2512613884d6573ca194d2b27576b371 (diff) | |
| download | ruby-dac2a348597f309e6a28dd631c71b613e1caefc4.tar.gz ruby-dac2a348597f309e6a28dd631c71b613e1caefc4.tar.xz ruby-dac2a348597f309e6a28dd631c71b613e1caefc4.zip | |
adhoc patch for [druby-ja:123]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 |
