Skip to content

Commit

Permalink
Knapsack: Fix empty list of items (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor authored Dec 12, 2023
1 parent 65ddf82 commit 6c1d8e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions exercises/knapsack/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
},
"expected": 0
},
{
"uuid": "3993a824-c20e-493d-b3c9-ee8a7753ee59",
"reimplements": "a4d7d2f0-ad8a-460c-86f3-88ba709d41a7",
"description": "no items",
"property": "maximumValue",
"input": {
"maximumWeight": 100,
"items": []
},
"expected": 0
},
{
"uuid": "1d39e98c-6249-4a8b-912f-87cb12e506b0",
"description": "one item, too heavy",
Expand Down

0 comments on commit 6c1d8e2

Please sign in to comment.