Debian Codegraph @

tests/spec/unit/regression/string-test-arg.mzn

raw
1 /***
2 !Test
3 expected: !Result
4 solution: !Solution
5 x: 4
6 ***/
7
8 % mzn2fzn r14673 and before aborted on this model due to the test predicate
9 % having a string argument.
10
11 bool: b = true;
12
13 string: s = "bar";
14
15 test foo(string: i) = i = "foo" /\ b;
16
17 var int: x :: add_to_output = if foo(s) then 3 else 4 endif;
18
19 solve satisfy;
20
21 output ["x = ", show(x), ";\n"];