Skip to content

Commit 5f8b05b

Browse files
committed
simple-linked-list: reimplement 1 test to count after reverse
1 parent b97ba39 commit 5f8b05b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,41 @@
590590
},
591591
"expected": {}
592592
},
593+
{
594+
"uuid": "1210eeda-b23f-4790-930c-7ac6d0c8e723",
595+
"reimplements": "92851ebe-9f52-4406-b92e-0718c441a2ab",
596+
"description": "Reversed non-empty list is reversed",
597+
"comments": [
598+
"This test does not use toList as toList can be implemented different ways.",
599+
"Perform a count after the reverse"
600+
],
601+
"property": "list",
602+
"input": {
603+
"initialValues": [1, 2, 3],
604+
"operations": [
605+
{
606+
"operation": "reverse"
607+
},
608+
{
609+
"operation": "count",
610+
"expected": 3
611+
},
612+
{
613+
"operation": "pop",
614+
"expected": 1
615+
},
616+
{
617+
"operation": "pop",
618+
"expected": 2
619+
},
620+
{
621+
"operation": "pop",
622+
"expected": 3
623+
}
624+
]
625+
},
626+
"expected": {}
627+
},
593628
{
594629
"uuid": "9b53af96-7494-4cfa-9b77-b7366fed5c4c",
595630
"description": "Double reverse",

0 commit comments

Comments
 (0)