(t *testing.T)
| 83 | } |
| 84 | |
| 85 | func TestFormat_CompactOutput(t *testing.T) { |
| 86 | f := New(Options{Compact: true}) |
| 87 | result, err := f.Format("SELECT id, name FROM users WHERE id = 1") |
| 88 | if err != nil { |
| 89 | t.Fatalf("Format() error = %v", err) |
| 90 | } |
| 91 | if strings.Contains(result, "\n") { |
| 92 | t.Errorf("Compact mode should not contain newlines, got: %s", result) |
| 93 | } |
| 94 | } |