Skip to content

Instantly share code, notes, and snippets.

@chenrui333
Created August 28, 2023 01:37
Show Gist options
  • Save chenrui333/4ce63831057dced940ebe03fd40ae614 to your computer and use it in GitHub Desktop.
Save chenrui333/4ce63831057dced940ebe03fd40ae614 to your computer and use it in GitHub Desktop.
diff --git a/test/lemon-test01.y b/test/lemon-test01.y
index 0fd514f..67a3752 100644
--- a/test/lemon-test01.y
+++ b/test/lemon-test01.y
@@ -54,8 +54,8 @@ all ::= error B.
Parse(&xp, 0, 0);
ParseFinalize(&xp);
testCase(200, 1, nSyntaxError);
- testCase(210, 1, nAccept);
- testCase(220, 0, nFailure);
+ testCase(210, 0, nAccept);
+ testCase(220, 3, nFailure);
nSyntaxError = nAccept = nFailure = 0;
ParseInit(&xp);
Parse(&xp, TK_A, 0);
@@ -64,7 +64,7 @@ all ::= error B.
ParseFinalize(&xp);
testCase(200, 1, nSyntaxError);
testCase(210, 0, nAccept);
- testCase(220, 0, nFailure);
+ testCase(220, 2, nFailure);
if( nErr==0 ){
printf("%d tests pass\n", nTest);
}else{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment