summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Regression/6_cmp_ok.t
blob: 05cfcba9a408cb16d01bc7d17f3586d1e0a663e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Test::More;

use Test2::API qw/intercept/;

my $events = intercept {
    local $SIG{__WARN__} = sub { 1 };
    my $foo = undef;
    cmp_ok($foo, "ne", "");
};

is($events->[-1]->message, <<EOT, "Got useful diag");
    undef
        ne
    ''
EOT

done_testing;