X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F14-callbacks.t;h=3cc6d934db007be28ea6127022e95d73ae9efab9;hb=b1c000770cd87f795f7d0873d82ea72d3d1601bd;hp=7a7948cba51ba38bdd06b7bbbec3f2bf7f992c0d;hpb=ca5538ffb33de051f881859a9a9bd1f78f806626;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/14-callbacks.t b/t/14-callbacks.t index 7a7948c..3cc6d93 100644 --- a/t/14-callbacks.t +++ b/t/14-callbacks.t @@ -41,25 +41,27 @@ 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 ], + [ 'main', $0, __LINE__-4 ], ], 'caller into callback into eval returns the right thing');