Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Consistency Assertions #282

Merged
merged 21 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
A minor change
  • Loading branch information
sidprasad committed Jan 8, 2025
commit 081b310d0cc26518a6f6589aea000d69d5f48ccd
3 changes: 3 additions & 0 deletions forge/tests/error/consistency-error.frg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ option verbose 0
sig Node {edges: set Node}




pred q { no Node }

// Assertions do not support is_forge_error
assert (some Node) is consistent with q

2 changes: 1 addition & 1 deletion forge/tests/forge/other/consistency-assertions.frg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ assert {} is consistent with p

test suite for p {
assert q is consistent with p
assert (lone edges) is consistent with p
assert lone edges is consistent with p
assert (lone edges) is consistent with p for 1 Node
assert (some edges) is inconsistent with p for 1 Node
assert q is inconsistent with p for exactly 2 Node
Expand Down