Add test
This commit is contained in:
parent
be80b6d204
commit
6bfb7005e7
1 changed files with 15 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue