tests/spec/unit/general/md_sum_float.mzn
raw| 1 | /*** |
| 2 | --- !Test |
| 3 | solvers: [gecode] |
| 4 | options: |
| 5 | all_solutions: true |
| 6 | expected: !Result |
| 7 | solution: |
| 8 | - !Solution |
| 9 | a: 55.0 |
| 10 | --- !Test # Workaround for chuffed all-solution issue |
| 11 | solvers: [chuffed] |
| 12 | expected: !Result |
| 13 | solution: !Solution |
| 14 | a: 55.0 |
| 15 | ***/ |
| 16 | |
| 17 | float : a :: add_to_output = sum([|1.0, 2.0, 3.0, 4.0, 5.0 | 6.0, 7.0, 8.0, 9.0, 10.0|]); |
| 18 | |
| 19 | solve satisfy; |