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:
nobu 2014-06-25 17:45:10 +00:00
parent 4198f1473a
commit f96f013955
3 changed files with 10 additions and 1 deletions

View file

@ -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