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

fixed an issue with counter values at assert_match() #165

Closed
wants to merge 1 commit into from
Closed

fixed an issue with counter values at assert_match() #165

wants to merge 1 commit into from

Conversation

arkaragi
Copy link

test_cases = [1, 2, 3, 4, 5, 6, 7, 8, 9]
snapshots = [1, 2, 3, 7, 5, 6, 7, 8, 9]

Now when 4 is compared to 7 an AssertionError is raised but the value of the counter is not updated. Thus, every next test case will be compared to 7 and every test will fail, until a test_case with value 7 is reached. Then the counter will be updated, but every new case will now be compared to 5. This is a critical error when someone is trying to test lists of items.

@arkaragi arkaragi closed this Feb 22, 2023
@arkaragi arkaragi reopened this Feb 22, 2023
@arkaragi arkaragi closed this by deleting the head repository Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant