func TestDescending(t *testing.T) {
	asc := nodes.Descending(1)
	expected := "1 DESC"
	if got, _ := sql.Accept(asc); expected != got {
		t.Errorf("TestDescending was expected to return %s, got %s", expected, got)
	}
}
Example #2
0
func TestDescending(t *testing.T) {
	desc := nodes.Descending(1)

	// The following struct members should exist.
	_ = desc.Expr

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