ruby-changes:24754
From: naruse <ko1@a...>
Date: Thu, 23 Aug 2012 20:58:48 +0900 (JST)
Subject: [ruby-changes:24754] naruse:r36805 (trunk): Test for r36803's singleton_class_of.
naruse 2012-08-23 20:58:39 +0900 (Thu, 23 Aug 2012) New Revision: 36805 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36805 Log: Test for r36803's singleton_class_of. Modified files: trunk/test/ruby/test_class.rb Index: test/ruby/test_class.rb =================================================================== --- test/ruby/test_class.rb (revision 36804) +++ test/ruby/test_class.rb (revision 36805) @@ -187,6 +187,7 @@ 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), []) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/