alecthomas / alecthomas/assert
fail to equal time.Time
Aberta
- Linguagem predominante
- Go
- Estrelas
- 195
- Forks
- 16
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.