-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #605 from conjure-cp/fix-521
Adding a regression test case for #521
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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,2 @@ | ||
find b : bool | ||
such that b = ([1, 2, 3] = flatten([1, 2, 3], 0)) |
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,2 @@ | ||
find c : bool | ||
such that c = alldifferent_except([1, 2, 5, 1, 6]) |
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,2 @@ | ||
find b : set of int(1..6) | ||
such that b = party(5) |
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,5 @@ | ||
rm -rf conjure-output | ||
conjure solve 1.essence | ||
conjure solve 2.essence | ||
conjure solve 3.essence | ||
rm -rf conjure-output |
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,28 @@ | ||
Error: | ||
1.essence:2:36: | ||
| | ||
2 | such that b = ([1, 2, 3] = flatten([1, 2, 3], 0)) | ||
| ^^^^^^^^^ | ||
Error: 1st arg must be a constant positive int | ||
|
||
1.essence:2:47: | ||
| | ||
2 | such that b = ([1, 2, 3] = flatten([1, 2, 3], 0)) | ||
| ^ | ||
Type error: | ||
Expected: [[?]] | ||
Got: int | ||
|
||
Error: | ||
2.essence:2:34: | ||
| | ||
2 | such that c = alldifferent_except([1, 2, 5, 1, 6]) | ||
| ^^^^^^^^^^^^^^^^^ | ||
Insufficient args, expected 2 got 1 | ||
|
||
Error: 3.essence:2:20: | ||
| | ||
2 | such that b = party(5) | ||
| ^^^ | ||
Insufficient args, expected 2 got 1 | ||
|