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

assert: Correctly document EqualValues behavior #1593

Merged
merged 1 commit into from May 16, 2024

Conversation

brackendawson
Copy link
Collaborator

Summary

The EqualValues docstring is ambiguous to how it actually behaves, this docstring more concisely describes the current behavior.

Changes

Update docstring for all EqualValues functions

Motivation

The ambiguity caused issues, such as #1576 where an update changed the arguably broken behaviour without breaking the ambiguous contract.

Related issues

#1576 this does not necessarily resolve the issue, nor does it preclude reverting the behavior. The aim here is only to make the documentation match the current behaviour.

@ccoVeille
Copy link
Contributor

I like your proposal.

@dolmen dolmen added documentation pkg-assert Change related to package testify/assert assert.EqualValues About equality labels May 16, 2024
@dolmen dolmen merged commit 3c0c0e6 into stretchr:master May 16, 2024
7 checks passed
@dolmen dolmen changed the title Correctly document EqualValues behavior assert: Correctly document EqualValues behavior May 16, 2024
@brackendawson brackendawson deleted the EqualValuesDoc branch May 24, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert.EqualValues About equality documentation pkg-assert Change related to package testify/assert
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants