subtest isnt => sub {
isnt('a', 'b', "a is not b");
isnt({}, [], "has is not array");
isnt(0, 1, "0 is not 1");
my $events = intercept {
isnt([], []);
isnt('a', 'a')
;
isnt(1, 1);
isnt({}, {});
};
@$events = grep {$_->isa('Test2::Event::Ok')} @$events;
is(@$events, 4, "4 events");
ok(!$_->{pass}, "Event was a failure") for @$events
ol('&isnt');
purge_symbol('&cmp_ok');
not_imported_ok(qw/is is_deeply like unlike isnt cmp_ok/);
}
use Test2::Tools::ClassicCompare;
imported_ok(qw/is is_deeply like cmp_ok unlike isnt/);
f", $ref, "flat check, ref as string left");
isnt("bar", "foo", 'not foo check');
isnt({}, "$ref", "negated flat check, ref as string right");
isnt("$ref", {}, "negated flat check, ref as strin
check");
def ok => (!is('foo', 'bar', "string mismatch"), "string mismatch");
def ok => (!isnt('foo', 'foo', "undesired match"), "undesired match");
def ok => (!like('foo', qr/a/, "no matc
1, async => 1);
tests outside => sub {
isnt(get_ids(), $orig, "In child (lexical)");
};
describe wrapper => sub {
case foo => sub {
isnt(get_ids(), $orig, "In child (inherited)")
orted_ok qw{
ok pass fail skip todo diag note
plan skip_all done_testing BAIL_OUT
is isnt like unlike is_deeply cmp_ok isa_ok
can_ok
subtest
};
ok(Test2::Plugin::ExitSummary->ac
not_imported_ok
ref_ok ref_is ref_is_not
mock mocked
dies lives try_ok
is like isnt unlike
match mismatch validator
hash array object meta number string bool check_isa
i
not_imported_ok
ref_ok ref_is ref_is_not
mock mocked
dies lives try_ok
is like isnt unlike
match mismatch validator
hash array object meta number string bool check_isa
i