diff --git a/exercises/simple-linked-list/canonical-data.json b/exercises/simple-linked-list/canonical-data.json new file mode 100644 index 0000000000..51bb004136 --- /dev/null +++ b/exercises/simple-linked-list/canonical-data.json @@ -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": [] + } + ] +}