Пример #1
0
func TestLessThanOrEqual(t *testing.T) {
	lte := nodes.LessThanOrEqual(1, 2)
	expected := "1 <= 2"
	if got, _ := sql.Accept(lte); expected != got {
		t.Errorf("TestLessThanOrEqual was expected to return %s, got %s", expected, got)
	}
}
Пример #2
0
func TestLessThanOrEqual(t *testing.T) {
	lte := nodes.LessThanOrEqual(1, 2)

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

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