mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix r36805.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d42794b78e
commit
9ae270bf88
1 changed files with 6 additions and 1 deletions
|
@ -187,7 +187,12 @@ class TestClass < Test::Unit::TestCase
|
|||
|
||||
def test_singleton_class
|
||||
assert_raise(TypeError) { 1.extend(Module.new) }
|
||||
if 1.0.equal? 1.0 # flonum?
|
||||
assert_raise(TypeError) { 1.0.extend(Module.new) }
|
||||
else
|
||||
assert_nothing_raised { 1.0.extend(Module.new) }
|
||||
end
|
||||
assert_nothing_raised { (2.0**1000).extend(Module.new) }
|
||||
assert_raise(TypeError) { :foo.extend(Module.new) }
|
||||
|
||||
assert_in_out_err([], <<-INPUT, %w(:foo :foo true true), [])
|
||||
|
|
Loading…
Add table
Reference in a new issue