test for the easy case
(self)
| 29 | assert k.knapsack(cap, w, val, c) == 0 |
| 30 | |
| 31 | def test_easy_case(self): |
| 32 | """ |
| 33 | test for the easy case |
| 34 | """ |
| 35 | cap = 3 |
| 36 | val = [1, 2, 3] |
| 37 | w = [3, 2, 1] |
| 38 | c = len(val) |
| 39 | assert k.knapsack(cap, w, val, c) == 5 |
| 40 | |
| 41 | def test_knapsack(self): |
| 42 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected