Blame t/hints_insist.t

Packit 6427f8
#!/usr/bin/perl -w
Packit 6427f8
use strict;
Packit 6427f8
use warnings;
Packit 6427f8
use autodie;
Packit 6427f8
Packit 6427f8
use Test::More tests => 5;
Packit 6427f8
Packit 6427f8
use FindBin qw($Bin);
Packit 6427f8
use lib "$Bin/lib";
Packit 6427f8
Packit 6427f8
use Hints_provider_does qw(always_pass always_fail no_hints);
Packit 6427f8
Packit 6427f8
eval "use autodie qw( ! always_pass always_fail); ";
Packit 6427f8
is("$@", "", "Insisting on good hints (distributed insist)");
Packit 6427f8
Packit 6427f8
is(always_pass(), "foo", "Always_pass() should still work");
Packit 6427f8
is(always_fail(), "foo", "Always_pass() should still work");
Packit 6427f8
Packit 6427f8
eval "use autodie qw(!always_pass !always_fail); ";
Packit 6427f8
is("$@", "", "Insisting on good hints (individual insist)");
Packit 6427f8
Packit 6427f8
my $ret = eval "use autodie qw(!no_hints); 1;";
Packit 6427f8
isnt("$@", "", "Asking for non-existent hints");