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

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

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