Skip to content

Commit

Permalink
Fixed final test and error message. Sometimes, I am an idiot.
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyG committed Oct 16, 2024
1 parent df381d8 commit 3c2544b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exercises/concept/plane-tickets/generators_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,7 @@ def test_generate_codes(self):
f'The function returned {actual_result}, but the tests '
f'expected {expected} when generating ticket numbers.')

self.assertEqual(list(generate_codes(seat_numbers, flight_id)), expected, msg=error_message)
# Note: DO NOT call the function here again, in case the student is using list.pop()
# to process the input. If another call is done with that condition,
# the test will fail with a terrible error message.
self.assertEqual(actual_result, expected, msg=error_message)

0 comments on commit 3c2544b

Please sign in to comment.