☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
division
/
test_div10.mzn
☽
☼
tests/spec/unit/division/test_div10.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
solvers: [gecode, cbc, highs]
4
expected: !Result
5
status: SATISFIED
6
solution: !Solution
7
y: 1
8
***/
9
10
var 0..1: y;
11
12
constraint y == 1 \/ 2 div y + 2 div (y - 1) == 0 ;
13
14
solve satisfy;