mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_exception.rb: missing test
* test/ruby/test_exception.rb (test_to_s): missing test for r30455. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
674f14a0bc
commit
4a21c8cc27
1 changed files with 11 additions and 0 deletions
|
@ -288,6 +288,17 @@ end.join
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue