Skip to content

Commit b2a048d

Browse files
committed
fix: fix check_test_cases
1 parent d55ef65 commit b2a048d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

leetcode/find_the_duplicate_number/test_solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setup_method(self):
2121
([2, 2, 2], 2),
2222
([1, 2, 3, 4, 4], 4),
2323
([4, 3, 2, 1, 2], 2),
24-
([2, 1, 3, 4, 5, 6, 7, 8, 9, 9], 9),
24+
([2, 5, 9, 6, 9, 3, 8, 9, 7, 1], 9),
2525
([1, 4, 4, 2, 4], 4),
2626
([3, 1, 3, 4, 2], 3),
2727
([1, 3, 4, 2, 2], 2),

leetcode_py/cli/resources/leetcode/json/problems/contiguous_array.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"name": "test_find_max_length",
5656
"signature": "(self, nums: list[int], expected: int)",
5757
"parametrize": "nums, expected",
58-
"test_cases": "[([0, 1], 2), ([0, 1, 0], 2), ([0, 1, 1, 1, 1, 1, 0, 0, 0], 6), ([0], 0), ([1], 0), ([0, 0], 0), ([1, 1], 0), ([0, 0, 1, 0, 0, 1, 1, 0], 6), ([1, 0, 1, 0, 1], 4), ([0, 1, 1, 0, 1, 1, 1, 0], 4), ([1, 1, 1, 1, 1, 1, 1, 1], 0), ([0, 0, 0, 0, 0, 0, 0, 0], 0), ([1, 0, 1, 1, 0, 0, 1, 0, 1], 8), ([0, 1, 0, 1, 0, 1, 0, 1], 8), ([1, 0, 0, 1, 1, 0, 1, 0, 0, 1], 10), ([0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 10), ([1, 1, 0, 0, 1, 1, 0, 0, 1, 1], 10)]",
58+
"test_cases": "[([0, 1], 2), ([0, 1, 0], 2), ([0, 1, 1, 1, 1, 1, 0, 0, 0], 6), ([0], 0), ([1], 0), ([0, 0], 0), ([1, 1], 0), ([0, 0, 1, 0, 0, 1, 1, 0], 6), ([1, 0, 1, 0, 1], 4), ([0, 1, 1, 0, 1, 1, 1, 0], 4), ([1, 1, 1, 1, 1, 1, 1, 1], 0), ([0, 0, 0, 0, 0, 0, 0, 0], 0), ([1, 0, 1, 1, 0, 0, 1, 0, 1], 8), ([0, 1, 0, 1, 0, 1, 0, 1], 8), ([1, 0, 0, 1, 1, 0, 1, 0, 0, 1], 10), ([0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 10), ([1, 1, 0, 0, 1, 1, 0, 0, 1, 1], 8)]",
5959
"body": " result = run_find_max_length(Solution, nums)\n assert_find_max_length(result, expected)"
6060
}
6161
]

leetcode_py/cli/resources/leetcode/json/problems/find_the_duplicate_number.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"name": "test_find_duplicate",
5050
"signature": "(self, nums: list[int], expected: int)",
5151
"parametrize": "nums, expected",
52-
"test_cases": "[([1, 3, 4, 2, 2], 2), ([3, 1, 3, 4, 2], 3), ([3, 3, 3, 3, 3], 3), ([1, 1], 1), ([2, 2, 2], 2), ([1, 2, 3, 4, 4], 4), ([4, 3, 2, 7, 8, 2, 3, 1], 2), ([2, 5, 9, 6, 9, 3, 8, 9, 7, 1], 9), ([1, 4, 4, 2, 4], 4), ([3, 1, 3, 4, 2], 3), ([1, 3, 4, 2, 2], 2), ([2, 1, 3, 4, 5, 6, 7, 8, 9, 9], 9), ([5, 2, 1, 3, 5, 7, 6, 4], 5), ([1, 2, 2], 2), ([1, 1, 2], 1), ([2, 1, 1], 1), ([1, 2, 3, 3], 3), ([4, 1, 2, 3, 4], 4)]",
52+
"test_cases": "[([1, 3, 4, 2, 2], 2), ([3, 1, 3, 4, 2], 3), ([3, 3, 3, 3, 3], 3), ([1, 1], 1), ([2, 2, 2], 2), ([1, 2, 3, 4, 4], 4), ([4, 3, 2, 1, 2], 2), ([2, 5, 9, 6, 9, 3, 8, 9, 7, 1], 9), ([1, 4, 4, 2, 4], 4), ([3, 1, 3, 4, 2], 3), ([1, 3, 4, 2, 2], 2), ([2, 1, 3, 4, 5, 6, 7, 8, 9, 9], 9), ([5, 2, 1, 3, 5, 7, 6, 4], 5), ([1, 2, 2], 2), ([1, 1, 2], 1), ([2, 1, 1], 1), ([1, 2, 3, 3], 3), ([4, 1, 2, 3, 4], 4)]",
5353
"body": " result = run_find_duplicate(Solution, nums)\n assert_find_duplicate(result, expected)"
5454
}
5555
]

0 commit comments

Comments
 (0)