func TestExtensiveGrouping(t *testing.T) { ext := nodes.And(1, 2).Or(3) expected := "(1 AND 2 OR 3)" if got, _ := sql.Accept(ext); expected != got { t.Errorf("TestExtensiveGrouping was expected to return %s, got %s", expected, got) } }
func TestAnd(t *testing.T) { and := nodes.And(1, 2) expected := "1 AND 2" if got, _ := sql.Accept(and); expected != got { t.Errorf("TestAnd was expected to return %s, got %s", expected, got) } }
func TestAnd(t *testing.T) { and := nodes.And(1, 2) // The following struct members should exist. _ = and.Left _ = and.Right // The following receiver methods should exist. _ = and.Or(1) _ = and.And(1) _ = and.Not() }