Commit a4e8419
test(stage2): register ownership schema suite + add round-trip fixture
The previous session wrote the ownership schema tests (find_ownership_section,
parse_ownership_section, test_ownership_*) but did not register them in the
test suite list and did not include the required fixture file.
This commit wires the three loose ends:
- `test/e2e/fixtures/ownership_codegen.affine` — four functions covering all
four ownership kinds: own/ref/mut/plain
- `test/test_e2e.ml` — adds `("E2E Ownership Schema", ownership_schema_tests)`
to the test registry
All 78 tests pass (3 new ownership schema round-trip tests included).
Stage 2 is now fully closed:
✓ 2a: TOwn/TRef/TMut → typed-wasm kind mapping designed
✓ 2b: [affinescript.ownership] custom section emitted in codegen
✓ 2c: schema reader (parse_ownership_section in test_e2e.ml)
✓ 2d: round-trip integration test: compile → emit → parse → verify kinds
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f7e25fd commit a4e8419
2 files changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
| 1152 | + | |
1152 | 1153 | | |
1153 | 1154 | | |
1154 | 1155 | | |
| |||
0 commit comments