diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_object.rb | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ Tue Apr 21 20:46:02 2015 SHIBATA Hiroshi <[email protected]> * test/ruby/test_object.rb: renamed tests to explicitly class name. @@ -244,6 +244,8 @@ class TestObject < Test::Unit::TestCase assert_raise(TypeError) { String(o) } def o.to_s; "o"; end assert_equal("o", String(o)) def o.respond_to?(*) false; end assert_raise(TypeError) { String(o) } end @@ -254,6 +256,8 @@ class TestObject < Test::Unit::TestCase assert_raise(TypeError) { Array(o) } def o.to_a; [1]; end assert_equal([1], Array(o)) def o.respond_to?(*) false; end assert_equal([o], Array(o)) end |