Uh oh!
There was an error while loading. Please reload this page.
Add doctests for fractional knapsack - #10891
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Christian Clauss <cclauss@me.com>
cclauss
commented
Oct 24, 2023
On your computer do |
Hardvan
commented
Oct 24, 2023
I have successfully executed the doctests, yielding the following output: 11 tests in fractional_knapsack.frac_knapsack |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Christian Clauss <cclauss@me.com>
After adding this test case, this is the output: 1 items had failures: This suggests that the existing code cannot handle the case when the input parameters are of another unexpected type (string). |
Uh oh!
There was an error while loading. Please reload this page.
Added doctests for the Fractional Knapsack algorithm, as requested in PR #10888
Checklist: