mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add Exception#backtrace test
This commit is contained in:
@@ -335,3 +335,13 @@ end
|
||||
assert('Exception#inspect without message') do
|
||||
Exception.new.inspect
|
||||
end
|
||||
|
||||
assert('Exception#backtrace') do
|
||||
begin
|
||||
raise "get backtrace"
|
||||
rescue => e
|
||||
e.backtrace
|
||||
end
|
||||
|
||||
true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user