summaryrefslogtreecommitdiff
path: root/test/ruby/test_exception.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-25 17:45:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-25 17:45:10 +0000
commitf96f013955b2e804be3bf63011cbbb3f132b5349 (patch)
tree8dc0ee9fa212ddde639de91d823f8d1878a8de4b /test/ruby/test_exception.rb
parent4198f1473ab7e34780db04155d01f6cc573f07c6 (diff)
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
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r--test/ruby/test_exception.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index a92050c1d3..c71c7dfc64 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -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