Commit Graph

2 Commits

Author SHA1 Message Date
0e311f0c7d Step 10c: fix capabilities, closure-scope, define-library imports
- Initialize _cek_call_ref in sx_ref.ml — fixes 8 capabilities tests
- Rename test variable 'peek' to 'get-val' — collides with new peek
  special form. Fixes closure-scope-edge test.
- Add import clause handling to define-library — was silently skipping
  (import ...) inside library definitions. Fixes 4 define-library tests.

2767/2768 OCaml (1 pre-existing aser/render-to-sx issue).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 11:58:18 +00:00
ebb3445667 Cross-host test suite: JS 870/870, Python 679/679 (100% both)
New test files:
- test-collections.sx (79): list/dict edge cases, interop, equality
- test-scope.sx (48): let/define/set!/closure/letrec/env isolation

Python test runner (hosts/python/tests/run_tests.py):
- Runs all spec tests against bootstrapped sx_ref.py
- Tree-walk evaluator with full primitive env
- Skips CEK/types/strict/continuations without --full

Cross-host fixes (tests now host-neutral):
- cons onto nil: platform-defined (JS: pair, Python: single)
- = on lists: test identity only (JS: shallow, Python: deep)
- str(true): accept "true" or "True"
- (+ "a" 1): platform-defined (JS: coerces, Python: throws)
- min/max: test with two args (Python single-arg expects iterable)
- TCO depth: lowered to 500 (works on both hosts)
- Strict mode tests moved to test-strict.sx (skipped on Python)

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