mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4875 from shuujii/remove-location-info-from-Exception-inspect
Remove location info from `Exception#inspect`
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user