Commit a220ae4
committed
Use numpy array comparisons in tests
Replace usages of built-in all(...) with np.array_equal(...) to correctly compare array-like results from m.getSolVal and m.getVal. Import numpy as np and construct the expected value as np.array([0, 0]). Also remove an unused itertools import and reorder pyscipopt imports for clarity.1 parent 5fff107 commit a220ae4
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
4 | 3 | | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
632 | 635 | | |
633 | 636 | | |
634 | 637 | | |
635 | | - | |
636 | | - | |
| 638 | + | |
| 639 | + | |
637 | 640 | | |
638 | 641 | | |
639 | 642 | | |
| |||
0 commit comments