grammars-v4
grammars-v4 copied to clipboard
[logo/logo] Unexpected error from example logo_feature_butfail_2.txt
I found this during testing of PR #2855, but it's an existing problem. That change merely upgraded it from a hidden error to a test case failure. For example, the checks for PR #2854 show the error. My change compares the error with the expected errors in logo/logo/examples/logo_feature_butfail_2.txt.errors and finds that they are unexpectedly different.
Here's the test output from PR #2854:
../examples/logo_feature_butfail_2.txt
PHP Warning: ANTLR Tool version 4.11.1 used for code generation does not match the current runtime version 4.10 in /home/runner/work/grammars-v4/grammars-v4/logo/logo/Generated/vendor/antlr/antlr4-php-runtime/src/RuntimeMetaData.php on line 140
PHP Warning: ANTLR Tool version 4.11.1 used for code generation does not match the current runtime version 4.10 in /home/runner/work/grammars-v4/grammars-v4/logo/logo/Generated/vendor/antlr/antlr4-php-runtime/src/RuntimeMetaData.php on line 140
Expected.
1c1
< line 3:12 token recognition error at: '�'line 3:13 token recognition error at: '�'
\ No newline at end of file
---
> line 1:0 mismatched input '<EOF>' expecting {'to', 'repeat', 'if', 'make', 'print', 'fd', 'forward', 'bk', 'backward', 'rt', 'right', 'lt', 'left', 'cs', 'clearscreen', 'pu', 'penup', 'pd', 'pendown', 'ht', 'hideturtle', 'st', 'showturtle', 'home', 'stop', 'label', 'setxy', 'for', STRING, COMMENT, EOL}
\ No newline at end of file
Expected parse errors match.
make: *** [makefile:25: test] Error 1
Duration: 0 hours 0 minutes 2 seconds