(t *testing.T)
| 83 | } |
| 84 | |
| 85 | func TestRoundtripAST_SQL(t *testing.T) { |
| 86 | a := ast.AST{Statements: []ast.Statement{&ast.SelectStatement{Columns: []ast.Expression{&ast.Identifier{Name: "1"}}}}} |
| 87 | if got := a.SQL(); got != "SELECT 1" { |
| 88 | t.Errorf("AST.SQL() = %q, want %q", got, "SELECT 1") |
| 89 | } |
| 90 | } |