ruby-changes:31367
From: nobu <ko1@a...>
Date: Mon, 28 Oct 2013 13:11:24 +0900 (JST)
Subject: [ruby-changes:31367] nobu:r43446 (trunk): test_exception.rb: missing test
nobu 2013-10-28 13:11:20 +0900 (Mon, 28 Oct 2013) New Revision: 43446 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43446 Log: test_exception.rb: missing test * test/ruby/test_exception.rb (test_to_s): missing test for r30455. Modified files: trunk/test/ruby/test_exception.rb Index: test/ruby/test_exception.rb =================================================================== --- test/ruby/test_exception.rb (revision 43445) +++ test/ruby/test_exception.rb (revision 43446) @@ -288,6 +288,17 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L288 assert_equal(e.inspect, e.new.inspect) end + def test_to_s + e = StandardError.new("foo") + assert_equal("foo", e.to_s) + + def (s = Object.new).to_s + "bar" + end + e = StandardError.new(s) + assert_equal("bar", e.to_s) + end + def test_set_backtrace e = Exception.new -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/