☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
json
/
json_enum_def_2.mzn
☽
☼
tests/spec/unit/json/json_enum_def_2.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
extra_files:
4
- json_enum_def_2.json
5
solvers: [gecode]
6
expected: !Result
7
solution: !Solution
8
x: ["C(1)", "C(2)", "C(3)", "A", "B", "to_enum(Foo,6)", "to_enum(Foo,7)", "to_enum(Foo,8)"]
9
***/
10
11
enum Foo;
12
13
any: x :: output = [show(i) | i in Foo];