X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-base.t;h=b5ce7317d85c165fdbc37b0240fd4b8e8f6f439b;hb=f067fa817eb9eedd084d756ece046b67b23fb657;hp=c1760c104e47e477750cb8b9db294868715a2435;hpb=14a44e7b2f834cbd0d2ba8cc63deda55b3e5f0dd;p=perl%2Fmodules%2FSub-Op.git diff --git a/t/10-base.t b/t/10-base.t index c1760c1..b5ce731 100644 --- a/t/10-base.t +++ b/t/10-base.t @@ -5,13 +5,16 @@ use warnings; use blib 't/Sub-Op-LexicalSub'; -use Test::More tests => 2 * 15 + 3 * 2 + 2 * 28; +use Test::More tests => (1 + 3) * 15 + (1 + 2 * 3) * 2 + 2 * 28; our $called; { local $/ = "####\n"; while () { + chomp; + s/\s*$//; + my ($code, $params) = split /----\s*/, $_; my ($names, $ret, $exp, $seq) = split /\s*#\s*/, $params; @@ -51,7 +54,9 @@ our $called; $test .= <<" CHECK_VIVID" BEGIN { no warnings 'uninitialized'; # Test::Builder can't get the file name - is *main::${name}\{CODE\}, undef, '$name: no symbol table vivification'; + ok !exists &main::${name}, '$name: not stubbed'; + ok !defined &main::${name}, '$name: body not defined'; + is *main::${name}\{CODE\}, undef, '$name: empty symbol table entry'; } CHECK_VIVID }