kp.calc_profit takes the required argument (profit, weight, max_weight) and returns whether the answer matches to the expected ones
(self)
| 11 | """ |
| 12 | |
| 13 | def test_sorted(self): |
| 14 | """ |
| 15 | kp.calc_profit takes the required argument (profit, weight, max_weight) |
| 16 | and returns whether the answer matches to the expected ones |
| 17 | """ |
| 18 | profit = [10, 20, 30, 40, 50, 60] |
| 19 | weight = [2, 4, 6, 8, 10, 12] |
| 20 | max_weight = 100 |
| 21 | assert kp.calc_profit(profit, weight, max_weight) == 210 |
| 22 | |
| 23 | def test_negative_max_weight(self): |
| 24 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected