alecthomas / alecthomas/assert

fail to equal time.Time

オープン
#9 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。