func TestLessThan(t *testing.T) {
	lt := nodes.LessThan(1, 2)
	expected := "1 < 2"
	if got, _ := sql.Accept(lt); expected != got {
		t.Errorf("TestLessThan was expected to return %s, got %s", expected, got)
	}
}
Exemple #2
0
func TestLessThan(t *testing.T) {
	lt := nodes.LessThan(1, 2)

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

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