Beispiel #1
0
func TestOr(t *testing.T) {
	or := nodes.Or(1, 2)
	expected := "1 OR 2"
	if got, _ := sql.Accept(or); expected != got {
		t.Errorf("TestOr was expected to return %s, got %s", expected, got)
	}
}
Beispiel #2
0
func TestOr(t *testing.T) {
	or := nodes.Or(1, 2)

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

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