@@ -201,23 +201,23 @@ def fixed_tests():
201
201
202
202
@test.it (' Regular cases' )
203
203
def regular_cases ():
204
- test.assert_equals(6 , user_solution([1 , 2 , 3 ]))
205
- test.assert_equals(5 , user_solution([2 , 3 ]))
204
+ test.assert_equals(user_solution([1 , 2 , 3 ]), 6 )
205
+ test.assert_equals(user_solution([2 , 3 ]), 5 )
206
206
207
207
@test.it (' Edge cases' )
208
208
def edge_cases ():
209
- test.assert_equals(0 , user_solution([]), " Invalid answer for empty array" )
210
- test.assert_equals(2 , user_solution([2 ]), " Invalid answer for one element array" )
209
+ test.assert_equals(user_solution([]), 0 , " Invalid answer for empty array" )
210
+ test.assert_equals(user_solution([2 ]), 2 , " Invalid answer for one element array" )
211
211
212
212
@test.it (' Input should not be modified' )
213
213
def do_not_mutate_input ():
214
- arr = list (range (100 ))
215
- random.shuffle(arr )
216
- arr_copy = arr [:]
214
+ source_arr = list (range (100 ))
215
+ random.shuffle(source_arr )
216
+ arr_copy = source_arr [:]
217
217
# call user solution and ignore the result
218
218
user_solution(arr_copy)
219
219
# arr_copy should not be modified
220
- test.assert_equals(arr_copy, arr , ' Input array was modified' )
220
+ test.assert_equals(arr_copy, source_arr , ' Input array was modified' )
221
221
222
222
223
223
@test.describe (' Random tests' )
0 commit comments