Permalink
Browse files

RT #76432 - add/mark tests

  • Loading branch information...
1 parent a7e1209 commit 6095efcebeae822affff3806667ccb7b6737d98f @coke coke committed Jan 17, 2014
Showing with 16 additions and 1 deletion.
  1. +1 −0 S02-lexical-conventions/sub-block-parsing.t
  2. +15 −1 integration/weird-errors.t
@@ -20,6 +20,7 @@ ok(sub { 42 }(), 'sub {...} works'); # TODO: clarify
#?rakudo skip 'confused near "(sub{ 42 }"'
ok(sub{ 42 }(), 'sub{...} works'); # TODO: clarify
+#RT #76432
eval_dies_ok q[
sub x { die }
x();
View
@@ -3,7 +3,7 @@ use Test;
BEGIN { @*INC.push: 't/spec/packages' };
use Test::Util;
-plan 10;
+plan 11;
# this used to segfault in rakudo
#?niecza skip 'todo'
@@ -63,3 +63,17 @@ lives_ok { Any .= (); CATCH { when X::Method::NotFound {1} } }, 'Typed, non-inte
{
eval_lives_ok('say(;:[])', 'weird code that used to parsefail rakudo');
}
+
+# RT #76432
+{
+ eval_lives_ok('class A {
+ has %!x;
+
+ method m {
+ sub foo {
+ }
+
+ %!x<bar> = 42;
+ }
+ }', "still able to parse statement after sub decl ending in newline");
+}

0 comments on commit 6095efc

Please sign in to comment.