Add NCmp #2

Merged
NiseVoid merged 2 commits from :NCmp into master 2020-06-12 19:35:27 +02:00
Showing only changes of commit 6bfb7005e7 - Show all commits

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())
}