nyash-codex
de16ff9b7f
feat(joinir): Phase 30.x jsonir v0 snapshot tests
Implement JSON snapshot testing for JoinIR regression detection.
Implementation:
- tests/fixtures/joinir/v0_*.jsonir: 6 snapshot fixtures for minimal JoinIR cases
- src/tests/joinir_json_min.rs: Added 6 snapshot comparison tests
Fixtures:
- v0_skip_ws_min.jsonir (1338 bytes)
- v0_funcscanner_trim_min.jsonir (4484 bytes)
- v0_funcscanner_append_defs_min.jsonir (988 bytes)
- v0_stage1_usingresolver_min.jsonir (987 bytes)
- v0_stageb_body_min.jsonir (1074 bytes)
- v0_stageb_funcscanner_min.jsonir (962 bytes)
Usage:
# Run snapshot tests
NYASH_JOINIR_SNAPSHOT_TEST=1 cargo test --release joinir_json_v0_
# Regenerate fixtures (after intentional changes)
NYASH_JOINIR_SNAPSHOT_TEST=1 NYASH_JOINIR_SNAPSHOT_GENERATE=1 cargo test --release joinir_json_v0_
Purpose:
- Fix current JoinIR shape as v0 baseline (pre-generic state)
- Detect unintended regressions during genericization
- Allow intentional fixture updates when design changes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 10:19:02 +09:00
..
2025-11-25 10:19:02 +09:00
2025-11-25 10:19:02 +09:00
2025-11-25 10:19:02 +09:00
2025-11-25 10:19:02 +09:00
2025-11-25 10:19:02 +09:00
2025-11-25 10:19:02 +09:00