1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_fixnum.rb (TestFixnum#test_singleton_method): new test.

* test/ruby/test_bignum.rb (TestBignum#test_singleton_method): ditto.

* test/ruby/test_float.rb (TestFloat#test_singleton_method): ditto.

* test/ruby/test_symbol.rb (TestSymbol#test_singleton_method): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-08-23 11:51:30 +00:00
parent 6a80947a4b
commit 1e73d66f6b
5 changed files with 30 additions and 0 deletions

View file

@ -271,4 +271,8 @@ class TestFixnum < Test::Unit::TestCase
def test_xor_with_nonintegral_numeric
assert_raise(TypeError, "#1792") { 1 ^ DummyNumeric.new }
end
def test_singleton_method
assert_raise(TypeError) { a = 1; def a.foo; end }
end
end