xref: /openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Regression/6_cmp_ok.t (revision 5759b3d249badf144a6240f7eec4dcf9df003e6b)
1use Test::More;
2
3use Test2::API qw/intercept/;
4
5my $events = intercept {
6    local $SIG{__WARN__} = sub { 1 };
7    my $foo = undef;
8    cmp_ok($foo, "ne", "");
9};
10
11is($events->[-1]->message, <<EOT, "Got useful diag");
12    undef
13        ne
14    ''
15EOT
16
17done_testing;
18