1 Commits

Author SHA1 Message Date
1ea80a2b71 Add comprehensive spec tests: 132 primitives + 9 freeze/thaw
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 17s
spec/tests/test-primitives.sx — 132 tests covering:
  arithmetic (20), comparison (14), predicates (18), strings (25),
  lists (24), dicts (12), higher-order (14), type coercion (5)

spec/tests/test-freeze.sx — 9 tests covering:
  freeze-scope (4), content-addressing (5)
  Full round-trip: freeze → serialize → parse → thaw → same values

hosts/javascript/run_tests.js — Node.js test harness
  Loads sx-browser.js, provides platform test functions,
  evaluates spec/tests/*.sx files

All tests pass on both Python and JavaScript hosts.
Host-dependent behaviour (str(true), mod negative) handled gracefully.

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