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

test: fix expected-actual parameters in require.Equal #1035

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Nov 26, 2024

This PR fixes the order of parameters in assert.Equal/require.Equal statements. According to the doc, the first parameter is expected, the second is actual.

It is planned to change the order of assertion arguments to more natural (actual, expected) in v2 of testify.

@fenollp fenollp merged commit 793b28d into getkin:master Nov 26, 2024
5 checks passed
@alexandear alexandear deleted the test/fix-expected-actual branch November 26, 2024 18:25
@ccoVeille
Copy link

It is planned to change the order of assertion arguments to more natural (actual, expected) in v2 of testify.

Well, testify v2 is on hold
stretchr/testify#1089 (comment)

@ccoVeille
Copy link

Thanks for fixing this

Dix you use testifylint to detect them?

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.

3 participants