blob: b2bcb6f2db1a7b40d32f43c118141f69b7258820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use strict;
use warnings;
use Test2::Tools::Tiny;
use Test2::Event::Exception;
my $exception = Test2::Event::Exception->new(
trace => 'fake',
error => "evil at lake_of_fire.t line 6\n",
);
ok($exception->causes_fail, "Exception events always cause failure");
is($exception->summary, "Exception: evil at lake_of_fire.t line 6", "Got summary");
ok($exception->diagnostics, "Exception events are counted as diagnostics");
done_testing;
|