]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/12-sig.t
Correct backtrace when wizard() croaks, and test it
[perl/modules/Variable-Magic.git] / t / 12-sig.t
index 636ad7e086d17b468ac47c2666c3cd6f6e54865e..662546d18e886e37d8191dfd8247d0bfb4f4ccce 100644 (file)
@@ -25,7 +25,7 @@ my ($a, $b, $c, $d) = 1 .. 4;
  is($sig, getsig $wiz2,  'retrieved wizard signature is correct');
 
  my $wiz3 = eval { wizard sig => [ ] };
- like($@, qr/Invalid\s+numeric\s+signature/, 'non numeric signature croaks');
+ like($@, qr/Invalid\s+numeric\s+signature\s+at\s+\Q$0\E/, 'non numeric signature croaks');
  is($wiz3, undef, 'non numeric signature doesn\'t return anything');
 
  my $a = 1;