summaryrefslogtreecommitdiff
path: root/test/test_delegate.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 01:34:37 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-24 01:34:37 +0000
commit796d005a23c5f8acc5dc954afd1ba001809d76c7 (patch)
tree19656143b6b49ce1129433dc74ebd4999d0c8fef /test/test_delegate.rb
parent327515a95b40b0bcd5e4e435cf0f131a2540990f (diff)
add a test for [ruby-dev:34808].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_delegate.rb')
-rw-r--r--test/test_delegate.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_delegate.rb b/test/test_delegate.rb
index 73740dd..42abbb6 100644
--- a/test/test_delegate.rb
+++ b/test/test_delegate.rb
@@ -12,4 +12,9 @@ class TestDelegateClass < Test::Unit::TestCase
obj.extend M
assert_equal(:m, obj.m, "[ruby-dev:33116]")
end
+
+ def test_systemcallerror_eq
+ e = SystemCallError.new(0)
+ assert((SimpleDelegator.new(e) == e) == (e == SimpleDelegator.new(e)), "[ruby-dev:34808]")
+ end
end