Debian Codegraph @

tests/spec/unit/general/test_string_cmp.mzn

raw
1 /***
2 !Test
3 expected: !Result
4 status: SATISFIED
5 solution: !Solution
6 xs: [1, 2, 3, 1, 2, 3]
7 ***/
8
9 array [1..6] of var 1..3: xs;
10
11 array [1..6] of string: ss = ["a", "b", "c", "a", "b", "c"];
12
13 constraint
14 forall (i, j in 1..6 where i < j /\ ss[i] < ss[j]) (xs[i] < xs[j]);
15
16 solve satisfy;