Example #1
0
func TestPostgresUnike(t *testing.T) {
	unlike := nodes.Unlike(1, 2)
	expected := "1 NOT ILIKE 2"
	if got, _ := postgres.Accept(unlike); expected != got {
		t.Errorf("TestPostgresUnike was expected to return %s, got %s", expected, got)
	}
}
Example #2
0
func TestUnlike(t *testing.T) {
	unlike := nodes.Unlike(1, 2)

	// The following struct members should exist.
	_ = unlike.Left
	_ = unlike.Right

	// The following receiver methods should exist.
	_ = unlike.Or(1)
	_ = unlike.And(1)
	_ = unlike.Not()
}