Skip to content

Commit

Permalink
Add a unit test validating parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
teiesti authored and ZachJHansen committed Apr 25, 2024
1 parent 232d5d9 commit 12f198e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ui/translate/tau_star/examples/parsing_error/program.lp
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.
9 changes: 9 additions & 0 deletions tests/ui/translate/tau_star/examples/parsing_error/stderr
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.

0 comments on commit 12f198e

Please sign in to comment.