Skip to content

Commit 6c1d8e2

Browse files
authored
Knapsack: Fix empty list of items (#2350)
1 parent 65ddf82 commit 6c1d8e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

exercises/knapsack/canonical-data.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
},
1313
"expected": 0
1414
},
15+
{
16+
"uuid": "3993a824-c20e-493d-b3c9-ee8a7753ee59",
17+
"reimplements": "a4d7d2f0-ad8a-460c-86f3-88ba709d41a7",
18+
"description": "no items",
19+
"property": "maximumValue",
20+
"input": {
21+
"maximumWeight": 100,
22+
"items": []
23+
},
24+
"expected": 0
25+
},
1526
{
1627
"uuid": "1d39e98c-6249-4a8b-912f-87cb12e506b0",
1728
"description": "one item, too heavy",

0 commit comments

Comments
 (0)