diff --git a/exercises/list-ops/list_ops_test.py b/exercises/list-ops/list_ops_test.py index 25efa41a01..d2018b0f48 100644 --- a/exercises/list-ops/list_ops_test.py +++ b/exercises/list-ops/list_ops_test.py @@ -4,7 +4,7 @@ import list_ops -# Tests adapted from problem-specifications//canonical-data.json @ v2.2.0 +# Tests adapted from problem-specifications//canonical-data.json @ v2.3.0 class ListOpsTest(unittest.TestCase): @@ -27,6 +27,11 @@ def test_concat_list_of_lists(self): self.assertEqual(list_ops.concat([[1, 2], [3], [], [4, 5, 6]]), [1, 2, 3, 4, 5, 6]) + def test_concat_list_of_nested_lists(self): + self.assertEqual( + list_ops.concat([[[1], [2]], [[3]], [[]], [[4, 5, 6]]]), + [[1], [2], [3], [], [4, 5, 6]]) + # tests for filter_clone def test_filter_empty_list(self): self.assertEqual(list_ops.filter_clone(lambda x: x % 2 == 1, []), [])