Skip to content

Attempt type conversion in assert.Equal#54

Merged
tylerstillwater merged 1 commit intostretchr:masterfrom
jbowes:master
Jun 4, 2014
Merged

Attempt type conversion in assert.Equal#54
tylerstillwater merged 1 commit intostretchr:masterfrom
jbowes:master

Conversation

@jbowes
Copy link
Copy Markdown
Contributor

@jbowes jbowes commented Jun 3, 2014

If the two values being tested are of compatible types, convert one
value to the other's type before comparing them. This allows
assert.Equal(int64(123), uint64(123)) to pass.

If the two values being tested are of compatible types, convert one
value to the other's type before comparing them. This allows
`assert.Equal(int64(123), uint64(123))` to pass.
@tylerstillwater
Copy link
Copy Markdown
Contributor

Very nice! Thank you for the PR!

tylerstillwater pushed a commit that referenced this pull request Jun 4, 2014
Attempt type conversion in assert.Equal
@tylerstillwater tylerstillwater merged commit 3e03dde into stretchr:master Jun 4, 2014
boekkooi-impossiblecloud pushed a commit to boekkooi-impossiblecloud/testify that referenced this pull request Apr 16, 2026
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.

2 participants