Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions exercises/simple-linked-list/canonical-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"exercise": "simple-linked-list",
"cases": [
{
"uuid": "3b72d23a-4487-4632-8682-59684c875dd9",
"description": "Convert an array to linked list, and then from linked list back to array",
"property": "fromArrayAndBack",
"input": {
"array": [3, 6, 1]
},
"expected": [3, 6, 1]
},
{
"uuid": "70484949-cf28-4446-af05-e24f5ae8a265",
"description": "Convert from array, reverse the list, and covert to array",
"property": "convertReverseConvertBack",
"input": {
"array": [3, 6, 1]
},
"expected": [1, 6, 3]
},
{
"uuid": "02fb7cdd-ad7f-4d0b-88b7-a3e0ccfcb584",
"description": "Convert empty array",
"property": "fromArrayAndBack",
"input": {
"array": []
},
"expected": []
},
{
"uuid": "410ed9b3-d4cd-4969-bc5e-3909efed65d8",
"description": "Convert and reverse empty array",
"property": "convertReverseConvertBack",
"input": {
"array": []
},
"expected": []
}
]
}