Exemplo n.º 1
0
func TestMinimum(t *testing.T) {
	min := nodes.Minimum(1)
	expected := "MIN(1)"
	if got, _ := sql.Accept(min); expected != got {
		t.Errorf("TestMinimum was expected to return %s, got %s", expected, got)
	}
}
Exemplo n.º 2
0
func TestMinimum(t *testing.T) {
	min := nodes.Minimum(1, 2, 3, 4)

	// The following struct members should exist.
	_ = min.Expressions
	_ = min.Alias
	_ = min.Distinct

	// The following receiver methods should exist.
	_ = min.And(1)
	_ = min.Or(1)
	_ = min.Eq(1)
	_ = min.Neq(1)
	_ = min.Gt(1)
	_ = min.Gte(1)
	_ = min.Lt(1)
	_ = min.Lte(1)
	_ = min.Like(1)
	_ = min.Unlike(1)
}