Skip to content

Commit 61342c5

Browse files
committed
notes
1 parent e191d2f commit 61342c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ Fix: prevent accidental nested `FuncCall` by inspecting and unwrapping recursive
136136

137137
## Custom testing strategy
138138

139+
Parse the any deparsed or pretty-formatted SQL back and verify the AST matches the original. This ensures the formatting doesn't break the SQL semantics.
140+
139141
Please review the test utilities — note that exact SQL string equality is not required. The focus is on comparing the resulting ASTs.
140142

141143
Refer to `expectAstMatch` to understand how correctness is validated.
@@ -147,6 +149,7 @@ parse(sql1) === parse(sql2) (AST-level equality).
147149

148150
You can see `expectAstMatch` here: packages/deparser/test-utils/index.ts
149151

152+
150153
---
151154

152155
### Development Setup

0 commit comments

Comments
 (0)