Skip to content

Commit 1fb68c4

Browse files
committed
generalize overly specific parsing test
We shouldn't be testing to see that a parse specifically returns Nil, since in the future it will be returning Failure. In any case, that's not what this test is trying to test, so it shouldn't.
1 parent b53616f commit 1fb68c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

S05-grammar/example.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ is($content ~~ m/<schedule>/, $content, 'match rule');
8888
token b { b }
8989
token TOP { <a><b><before $<b>> }
9090
}
91-
is rt81136.parse('abc'), Nil,
91+
nok rt81136.parse('abc'),
9292
'lookbehind that should not match does not match';
9393
}
9494

0 commit comments

Comments
 (0)