This commit is contained in:
Crow Crowcrow 2020-06-12 18:28:08 +02:00
parent be80b6d204
commit 6bfb7005e7
Signed by untrusted user: Crow
GPG Key ID: 45A8E203AF859FD8

View File

@ -177,3 +177,18 @@ func TestCmpTimezones(t *testing.T) {
fa.Cmp(&A{ti}, &A{ti2})
assert.True(ft.GotError())
}
func TestNCmp(t *testing.T) {
assert := New(t)
ft, fa := newFakeT()
type A struct {
S string
}
fa.NCmp(A{"not"}, A{"equal"})
assert.False(ft.GotError())
fa.NCmp(A{"equal"}, A{"equal"})
assert.True(ft.GotError())
}