Skip to content

Commit 76ee5b7

Browse files
authored
[simple-linked-list] Add missing initialValues field (#2645)
Templating languages that distinguish between undefined and empty list will crash out on this missing field, or force the template author to handle the field's absence explicitly.
1 parent 884384d commit 76ee5b7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

exercises/simple-linked-list/canonical-data.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,22 @@
185185
},
186186
"expected": {}
187187
},
188+
{
189+
"uuid": "f3197f0a-1fea-45a5-939f-4a5ea60387ec",
190+
"reimplements": "70d747a1-2e84-4ebc-bc3f-dcbee6a05f6b",
191+
"description": "Can push to an empty list",
192+
"property": "list",
193+
"input": {
194+
"initialValues": [],
195+
"operations": [
196+
{
197+
"operation": "push",
198+
"value": 1
199+
}
200+
]
201+
},
202+
"expected": {}
203+
},
188204
{
189205
"uuid": "391e332e-1f91-4033-b1e0-0e0c17812fa7",
190206
"description": "Can push to a non-empty list",

0 commit comments

Comments
 (0)