Asama 7.2 — Snapshot testing for AST/IR/symbol output #63

Closed
opened 2026-05-26 19:53:08 +03:00 by saqut · 0 comments
Owner

Goal: Ensure compiler output is stable across changes.

Files to create:

  • tests/snapshots/ directory
  • Script that runs saqut ast and compares to stored JSON.

Requirements:

  • Store known-good JSON output for source.sqt, Final.sqt.
  • Test compares current output to snapshot; fails on difference.
  • Snapshot update mode to regenerate expected files.

Success criteria:

  • Changes to parser that affect AST structure are caught.
**Goal:** Ensure compiler output is stable across changes. **Files to create:** - tests/snapshots/ directory - Script that runs saqut ast and compares to stored JSON. **Requirements:** - Store known-good JSON output for source.sqt, Final.sqt. - Test compares current output to snapshot; fails on difference. - Snapshot update mode to regenerate expected files. **Success criteria:** - Changes to parser that affect AST structure are caught.
saqut closed this issue 2026-06-14 21:53:13 +03:00
Sign in to join this conversation.
No description provided.