stretchr/testify
Voir sur GitHubShould `Equal` pass too when `EqualValues` would pass?
Open
#235 ouverte le 5 nov. 2015
enhancementhelp wanted
Métriques du dépôt
- Stars
- (25 958 stars)
- Métriques de merge PR
- (Merge moyen 6j 15h) (2 PRs mergées en 30 j)
Description
Right now there are some cases where Equals fails where EqualValues passes. e.g: comparing assert.Equal(t, uint32(5), 5)
However, Equal is a broader term and seems to imply that it would include EqualValues.
I want to consider making Equal pass when EqualValues passes too.
Main thing to research is whether there's any case where that behaviour would translate in an Equal assertion passing when it should be failing.