mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
eval_error.c: newline always
* eval_error.c (error_print): put a newline after an anonymous exception class name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4198f1473a
commit
f96f013955
3 changed files with 10 additions and 1 deletions
|
@ -618,4 +618,8 @@ end.join
|
|||
e = assert_raise(exc, bug) {raise exc, {}}
|
||||
assert_equal({}, e.arg, bug)
|
||||
end
|
||||
|
||||
def test_anonymous_message
|
||||
assert_in_out_err([], "raise Class.new(RuntimeError), 'foo'", [], /foo\n/)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue