Commit Graph

4 Commits

Author SHA1 Message Date
237ac234df Fix JS spec tests: 466/469 passing (99.4%)
- Make Continuation callable as JS function (not just object with .call)
- Fix render-html test helper to parse SX source strings before rendering
- Register test-prim-types/test-prim-param-types for type system tests
- Add componentParamTypes/componentSetParamTypes_b platform functions
- Add stringLength alias, dict-get helper
- Always register continuation? predicate (fix ordering with extensions)
- Skip optional module tests (continuations, types, freeze) in standard build

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 11:11:40 +00:00
4b21efc43c JS test harness: 375/469 spec tests pass with full build
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 9s
- Add --full flag for full-spec build (includes continuations + types)
- Add types module to JS SPEC_MODULES
- 375 tests pass on JavaScript, 94 remaining failures are:
  29 type platform stubs, 14 render format, 6 continuation aliases,
  5 type system platform, 4 string primitive aliases
- Full test build: hosts/javascript/cli.py --extensions continuations
  --spec-modules types --output sx-full-test.js

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 10:46:50 +00:00
1800b80316 Add Node.js test harness for spec tests
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 10s
hosts/javascript/run_tests.js — loads sx-browser.js in Node,
provides test platform functions, runs spec/tests/*.sx.

40/43 CEK tests pass (3 continuation tests need extension).
178/328 total spec tests pass — remaining failures are missing
env bindings (equal?, continuation helpers, etc).

Usage: node hosts/javascript/run_tests.js [test-name]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 10:22:00 +00:00
7036621be8 Phase 3: Move host files to hosts/python/ and hosts/javascript/
Python: bootstrap.py, platform.py, transpiler.sx, boundary_parser.py, tests/
JavaScript: bootstrap.py, cli.py, platform.py, transpiler.sx
Both bootstrappers verified — build from new locations, output to shared/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 02:18:56 +00:00