Debian Codegraph @

tests/spec/unit/optional/opt_top_absent.mzn

raw
1 /***
2 !Test
3 expected: !Result
4 solution: !Solution
5 x: true
6 a: true
7 b: true
8 c: true
9 p: true
10 ***/
11
12 test foo(opt $T: x) = true;
13 any: x :: output = foo(<>);
14
15 test bar(opt $T, opt $T) = true;
16 any: a :: output = bar(1, <>);
17 any: b :: output = bar(<>, 1);
18 any: c :: output = bar(<>, <>);
19
20 test qux(tuple($T), opt $T) = true;
21 any: p :: output = qux((1,), <>);