示例#1
0
func TestAscending(t *testing.T) {
	asc := nodes.Ascending(1)
	expected := "1 ASC"
	if got, _ := sql.Accept(asc); expected != got {
		t.Errorf("TestAscending was expected to return %s, got %s", expected, got)
	}
}
示例#2
0
func TestAscending(t *testing.T) {
	asc := nodes.Ascending(1)

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

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