Commit e6aea39
feat: AffineScript port of tests/validate.test.ts (TS->AS campaign step 2) (#25)
* feat(security): fleet-wide workflow hardening (SHA pinning + permissions)
* feat: AffineScript port of tests/validate.test.ts (TS->AS campaign step 2)
Additive port of tests/validate.test.ts to tests/validate.test.affine
plus compiled tests/validate.test.deno.js (Deno-ESM target).
All 22 structural-validation tests pass via:
deno run --allow-read tests/validate.test.deno.js
The .ts source is retained (additive port; standards#241 TAIL BATCH 1
guidance). Coverage parity:
* UNIT / SMOKE / E2E / CONTRACT / ASPECT / BENCHMARK arms all ported
* TOML "parse without error" assertion replaced with regex-based
well-shaped-and-non-empty check (AffineScript has no TOML stdlib
binding today; documented gap in PR body).
* Field-presence assertions converted from `parseTOML(...)` lookups
to anchored regex matches against the raw text -- functionally
equivalent for the invariants this suite protects.
Compile invocation:
AFFINESCRIPT_STDLIB=.../affinescript/stdlib \
affinescript compile --deno-esm \
-o tests/validate.test.deno.js tests/validate.test.affine
Part of hyperpolymath/standards#239 / standards#241.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a89d9ba commit e6aea39
3 files changed
Lines changed: 913 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
0 commit comments