|
Try the list(reversed()) of the cases and this finds more bugs: MISMATCH: [6, 7, 7, 4, 3, 2, 1, 5, 2] holds 10 (got 0)
MISMATCH: [5, 3, 6, 7, 7, 4, 3, 2, 1, 5, 2] holds 12 (got 2) Another mismatch:
MISMATCH: [2, 0, 1] holds 1 (got 0)
TRUE: [1, 0, 2] holds 1 |