X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F01_basic.t;h=ac7f07a284255ea5d91371c75a88f59f14583494;hb=41ec1eaf0c685813f08d5c10727b8d39c46f4aa4;hp=c16cab305bd0cc87d142d4ea5671571151b41c32;hpb=6d3e0a6f835b971f8e877688998699a9dd7c688e;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/t/01_basic.t b/t/01_basic.t index c16cab3..ac7f07a 100644 --- a/t/01_basic.t +++ b/t/01_basic.t @@ -19,7 +19,7 @@ BEGIN { sub DESTROY { my $self = shift; $self->[0]->() } } -print "1..4\n"; +print "1..6\n"; my $had_error = 0; END { $? = $had_error }; @@ -34,6 +34,10 @@ ok( eval "use Devel::GlobalDestruction; 1", "use Devel::GlobalDestruction" ); ok( defined &in_global_destruction, "exported" ); +ok( defined prototype \&in_global_destruction, "defined prototype" ); + +ok( prototype \&in_global_destruction eq "", "empty prototype" ); + ok( !in_global_destruction(), "not in GD" ); our $sg = Test::Scope::Guard->new(sub { ok( in_global_destruction(), "in GD" ) });