X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F14-callbacks.t;h=e14d5709be01f2da446d27caadf1b663daff5176;hb=54a1b1e4382ad55a54cbd874d6ffd87bf58dffbc;hp=7a7948cba51ba38bdd06b7bbbec3f2bf7f992c0d;hpb=ca5538ffb33de051f881859a9a9bd1f78f806626;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/14-callbacks.t b/t/14-callbacks.t index 7a7948c..e14d570 100644 --- a/t/14-callbacks.t +++ b/t/14-callbacks.t @@ -41,25 +41,26 @@ cast $b, $wiz; my $u = $b; is_deeply(\@callers, [ - [ 'main', $0, 42 ], + [ 'main', $0, __LINE__-2 ], ], 'caller into callback returns the right thing'); @callers = (); $u = $b; is_deeply(\@callers, [ - [ 'main', $0, 48 ], + [ 'main', $0, __LINE__-2 ], ], 'caller into callback returns the right thing (second time)'); { - my $u = $b; @callers = (); - is_deeply(\@callers, [ ], 'caller into callback into block returns the right thing'); + my $u = $b; + is_deeply(\@callers, [ + [ 'main', $0, __LINE__-2 ], + ], 'caller into callback into block returns the right thing'); } @callers = (); eval { my $u = $b }; is($@, '', 'caller into callback doesn\'t croak'); is_deeply(\@callers, [ - [ 'main', $0, 60 ], - [ 'main', $0, 60 ], + ([ 'main', $0, __LINE__-3 ]) x 2, ], 'caller into callback into eval returns the right thing');