Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plane Tickets]: Fixed Final Test & Error Message. #3792

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading