| 1 |
/*** |
| 2 |
!Test |
| 3 |
solvers: [gecode] |
| 4 |
expected: !Result |
| 5 |
solution: !Solution |
| 6 |
b: true |
| 7 |
s: "" |
| 8 |
x: [] |
| 9 |
y: [] |
| 10 |
***/ |
| 11 |
% a: "empty_annotation" |
| 12 |
|
| 13 |
bool: b ::add_to_output = if false then false endif; |
| 14 |
string: s ::add_to_output = if false then "failed" endif; |
| 15 |
array[int] of int: x ::add_to_output = if false then [1] endif; |
| 16 |
array[int,int] of int: y ::add_to_output = if false then [|1,2|3,4|] endif; |
| 17 |
|
| 18 |
% Tests the annotation version |
| 19 |
constraint b ::if false then expression_name("failed") endif; |
| 20 |
% TODO fix the Python interface |
| 21 |
% ann: a ::add_to_output = if false then expression_name("failed") endif; |