From 3dcd8efa59838d0c556e708cbac1266eeea6abff Mon Sep 17 00:00:00 2001 From: BethanyG Date: Tue, 29 Sep 2026 15:52:21 -0700 Subject: [PATCH 1/2] September sync of tests for list-ops. --- exercises/practice/list-ops/.meta/tests.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exercises/practice/list-ops/.meta/tests.toml b/exercises/practice/list-ops/.meta/tests.toml index 08b1edc0443..893becc9799 100644 --- a/exercises/practice/list-ops/.meta/tests.toml +++ b/exercises/practice/list-ops/.meta/tests.toml @@ -100,7 +100,10 @@ reimplements = "be396a53-c074-4db3-8dd6-f7ed003cce7c" description = "reverse the elements of the list -> empty list" [fcc03d1e-42e0-4712-b689-d54ad761f360] -description = "reverse the elements of the list -> non-empty list" +description = "reverse the elements of the list -> non-empty even-length list" + +[64d77184-5f74-4845-b158-545d2dd2df98] +description = "reverse the elements of the list -> non-empty odd-length list" [40872990-b5b8-4cb8-9085-d91fc0d05d26] description = "reverse the elements of the list -> list of lists is not flattened" From bfc420ab81e76f609ab8fba4b289e4a0ed42eafc Mon Sep 17 00:00:00 2001 From: BethanyG Date: Tue, 29 Sep 2026 16:01:24 -0700 Subject: [PATCH 2/2] Regenerated test file. --- exercises/practice/list-ops/list_ops_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/exercises/practice/list-ops/list_ops_test.py b/exercises/practice/list-ops/list_ops_test.py index ea0d2136599..7b40aaa8d54 100644 --- a/exercises/practice/list-ops/list_ops_test.py +++ b/exercises/practice/list-ops/list_ops_test.py @@ -1,6 +1,6 @@ # These tests are auto-generated with test data from: # https://github.com/exercism/problem-specifications/tree/main/exercises/list-ops/canonical-data.json -# File last updated on 2023-07-19 +# File last updated on 2026-09-29 import unittest @@ -80,9 +80,12 @@ def test_foldr_direction_dependent_function_applied_to_non_empty_list(self): def test_reverse_empty_list(self): self.assertEqual(reverse([]), []) - def test_reverse_non_empty_list(self): + def test_reverse_non_empty_even_length_list(self): self.assertEqual(reverse([1, 3, 5, 7]), [7, 5, 3, 1]) + def test_reverse_non_empty_odd_length_list(self): + self.assertEqual(reverse([1, 3, 5, 7, 9, 11, 13]), [13, 11, 9, 7, 5, 3, 1]) + def test_reverse_list_of_lists_is_not_flattened(self): self.assertEqual( reverse([[1, 2], [3], [], [4, 5, 6]]), [[4, 5, 6], [], [3], [1, 2]]