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

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

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