Debian Codegraph @

tests/spec/unit/regression/coercion_par.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 solution: !Solution
6 x: [1, null]
7 y: [1.0, null]
8 z: [0.0, null]
9 ***/
10
11 % Previously crashed due to using var bool2int/bool2float since par version was missing
12
13 array [int] of opt int: x :: add_to_output = [true, <>];
14 array [int] of opt float: y :: add_to_output = [1, <>];
15 array [int] of opt float: z :: add_to_output = [false, <>];