Group
Extension

Matches 6

Test2-Suite ( E/EX/EXODIST/Test2-Suite-0.000162.tar.gz, EXODIST, 2024; MetaCPAN )
Test2-Suite/t/modules/Tools/Compare.t ( view source; MetaCPAN )


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
Test2-Suite ( E/EX/EXODIST/Test2-Suite-0.000162.tar.gz, EXODIST, 2024; MetaCPAN )
Test2-Suite/t/modules/Tools/ClassicCompare.t ( view source; MetaCPAN )
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
Test2-Suite ( E/EX/EXODIST/Test2-Suite-0.000162.tar.gz, EXODIST, 2024; MetaCPAN )
Test2-Suite/t/acceptance/Workflow-Acceptance5.t ( view source; MetaCPAN )
 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)")
  
Test2-Suite ( E/EX/EXODIST/Test2-Suite-0.000162.tar.gz, EXODIST, 2024; MetaCPAN )
Test2-Suite/t/modules/Bundle/More.t ( view source; MetaCPAN )
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
Test2-Suite ( E/EX/EXODIST/Test2-Suite-0.000162.tar.gz, EXODIST, 2024; MetaCPAN )
Test2-Suite/t/modules/Bundle/Extended.t ( view source; MetaCPAN )
 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
Test2-Suite ( E/EX/EXODIST/Test2-Suite-0.000162.tar.gz, EXODIST, 2024; MetaCPAN )
Test2-Suite/t/modules/V0.t ( view source; MetaCPAN )
 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

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.