xref: /openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Test2/modules/EventFacet/Amnesty.t (revision 5759b3d249badf144a6240f7eec4dcf9df003e6b)
1use strict;
2use warnings;
3
4use Test2::Tools::Tiny;
5
6use ok 'Test2::EventFacet::Amnesty';
7my $CLASS = 'Test2::EventFacet::Amnesty';
8
9my $one = $CLASS->new(details => 'foo', tag => 'bar', inherited => 0);
10
11is($one->details, "foo", "Got details");
12is($one->tag, "bar", "Got tag");
13is($one->inherited, 0, "Got 'inherited' value");
14
15is_deeply($one->clone, $one, "Cloning.");
16isnt($one->clone, $one, "Clone is a new ref");
17
18ok($CLASS->is_list, "is a list");
19is($CLASS->facet_key, 'amnesty', "Got key");
20
21done_testing;
22