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