We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in the same length .... it returns me an error :
def test_get_longest_state():
assert get_longest_state(us_state_abbrev) == 'South Carolina'
E AssertionError: assert 'North Carolina' == 'South Carolina' E - North Carolina E ? ^ ^ E + South Carolina E ? ^ ^
The text was updated successfully, but these errors were encountered:
Hey Yosef, good point, thanks.
I did not hit this because I did not reverse the sort: sorted(data, key=len)[-1]
I updated the tests to accept both Carolinas as correct answers here:
correct_answers = ('North Carolina', 'South Carolina') assert get_longest_state(us_state_abbrev) in correct_answers assert get_longest_state(states) in correct_answers
Sorry, something went wrong.
No branches or pull requests
in the same length .... it returns me an error :
E AssertionError: assert 'North Carolina' == 'South Carolina'
E - North Carolina
E ? ^ ^
E + South Carolina
E ? ^ ^
The text was updated successfully, but these errors were encountered: