Add check on valid parse.

This commit is contained in:
Ken Domino 2021-03-03 12:54:26 -05:00
parent d0a4eacea5
commit 12dcef6676
1 changed files with 7 additions and 1 deletions

View File

@ -5,4 +5,10 @@ cat ParserATNSimulator.save | sed 's/bool debug = false;/bool debug = true;/' >
dotnet restore dotnet restore
dotnet build dotnet build
dotnet run -input "1+2" dotnet run -input "1+2"
if [[ "$?" != "0" ]]
then
echo "Issue 2693 test failed."
exit 1
else
echo "Test passed--did not crash."
fi