X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-ok.t;h=4aeba2b5121d7ff5cf5535c696ea1640eaaf9179;hb=378088097e64037f79bdae71f517be8b4a443929;hp=e6fcafe8063cb8f27643ef95e0b9e3bdd9c30f3a;hpb=6c548b9b29eaa5e43616cb1c9422d0fd6b85121c;p=perl%2Fmodules%2FTest-Leaner.git diff --git a/t/20-ok.t b/t/20-ok.t index e6fcafe..4aeba2b 100644 --- a/t/20-ok.t +++ b/t/20-ok.t @@ -3,6 +3,8 @@ use strict; use warnings; +BEGIN { delete $ENV{PERL_TEST_LEANER_USES_TEST_MORE} } + use Test::Leaner tests => 4 + 1 + 2 + 1; ok 1; @@ -17,13 +19,16 @@ my $ret = ok 1; ok $ret, 'ok(true) returns true'; { - package Test::Leaner::TestOverload::AlwaysFalse; + package Test::Leaner::TestOverload::AlwaysTrue; - use overload 'bool' => sub { 1 }; + use overload ( + 'bool' => sub { 1 }, + '""' => sub { '' }, + ); sub new { bless { }, shift } } -my $z = Test::Leaner::TestOverload::AlwaysFalse->new; +my $z = Test::Leaner::TestOverload::AlwaysTrue->new; ok $z, 'ok($overloaded_true)';