summaryrefslogtreecommitdiffhomepage
path: root/test/t/exception.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/exception.rb')
-rw-r--r--test/t/exception.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index bdf277c1e..a6f69eef6 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -352,8 +352,10 @@ assert('Exception 19') do
assert_equal [true, true], Class4Exception19.new.a
end
-assert('Exception#inspect without message') do
+assert('Exception#inspect') do
assert_equal "Exception", Exception.new.inspect
+ assert_equal "Exception", Exception.new("").inspect
+ assert_equal "error! (Exception)", Exception.new("error!").inspect
end
assert('Exception#backtrace') do