-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a unit test validating parsing errors
- Loading branch information
1 parent
232d5d9
commit 12f198e
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
tests/ui/translate/tau_star/examples/parsing_error/program.lp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
p(X) :- q(X). | ||
p(X) :- q(X++1), not r(X). | ||
q :- t. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Error: could not parse file `tests/ui/translate/tau_star/examples/parsing_error/program.lp` | ||
|
||
Caused by: | ||
--> 2:13 | ||
| | ||
2 | p(X) :- q(X++1), not r(X). | ||
| ^--- | ||
| | ||
= expected precomputed_term, variable, or negative |
Empty file.