alecthomas / alecthomas/assert
fail to equal time.Time
Abierto
- Lenguaje dominante
- Go
- Estrellas
- 195
- Forks
- 16
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Given two times that are equal using their [`.Equal()`](https://pkg.go.dev/time#Time.Equal) method, they fail using `assert.Equal()`.
## Proposed solution
Instead of using `reflect.DeepEqual()`, first check if we are asserting times, and then use their [`.Equal()`](https://pkg.go.dev/time#Time.Equal) method.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.