Permalink
Browse files

[t/compiler.t] fixed thinko

Oh, that's why we were doing so well on the errors. Now there's lots of
tests to fix.
  • Loading branch information...
1 parent 6d95f69 commit d82542948d4d9657cf732913db848c040eab5d3e @masak committed Mar 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 t/compiler.t
View
@@ -84,7 +84,7 @@ for @programs-that-don't-compile -> $pair { # '
$c.compile($program);
$can-compile = True;
}
- ok !$can-compile && defined $!.substr($expected-error),
+ ok !$can-compile && defined $!.index($expected-error),
"'{escape $program}' gives error '$expected-error'";
}

0 comments on commit d825429

Please sign in to comment.