alecthomas / alecthomas/assert
fail to equal time.Time
オープン
- 主要言語
- Go
- スター
- 195
- フォーク
- 16
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。