]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/14-callbacks.t
A better fix for handling exceptions at compile time.
[perl/modules/Variable-Magic.git] / t / 14-callbacks.t
index 3cc6d934db007be28ea6127022e95d73ae9efab9..e14d5709be01f2da446d27caadf1b663daff5176 100644 (file)
@@ -54,7 +54,7 @@ is_deeply(\@callers, [
  @callers = ();
  my $u = $b;
  is_deeply(\@callers, [
-  [ 'main', $0, __LINE__-2 ]
+  [ 'main', $0, __LINE__-2 ],
  ], 'caller into callback into block returns the right thing');
 }
 
@@ -62,6 +62,5 @@ is_deeply(\@callers, [
 eval { my $u = $b };
 is($@, '', 'caller into callback doesn\'t croak');
 is_deeply(\@callers, [
- [ 'main', $0, __LINE__-3 ],
- [ 'main', $0, __LINE__-4 ],
+ ([ 'main', $0, __LINE__-3 ]) x 2,
 ], 'caller into callback into eval returns the right thing');