(name: string, cond: boolean)
| 18 | let passed = 0; |
| 19 | let failed = 0; |
| 20 | function check(name: string, cond: boolean) { |
| 21 | if (cond) { passed++; console.log(` ✓ ${name}`); } |
| 22 | else { failed++; console.log(` ✗ ${name}`); } |
| 23 | } |
| 24 | |
| 25 | function node(partial: Partial<TSNodeLike> & { type: string }, children: TSNodeLike[] = []): TSNodeLike { |
| 26 | return { |