mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Test for r36803's singleton_class_of.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e73d66f6b
commit
180a2fbf9d
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ class TestClass < Test::Unit::TestCase
|
|||
|
||||
def test_singleton_class
|
||||
assert_raise(TypeError) { 1.extend(Module.new) }
|
||||
assert_raise(TypeError) { 1.0.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