From 1a5dbc280084f96416557769d8091ff0180dac5c Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 15 Mar 2026 10:04:01 +0000 Subject: [PATCH] Fix test runner paths, all 203 tests pass Spec tests (Python host): 43 CEK + 24 continuations + 90 types = 157 Web tests (Python host): 20 signals + 26 CEK reactive = 46 Total: 203 tests, 0 failures. Fixed: continuation test bootstrapper path, type test spec dir path. Both bootstrappers verified: Python (5993 lines), JS (387KB). Co-Authored-By: Claude Opus 4.6 (1M context) --- hosts/python/tests/run_continuation_tests.py | 2 +- hosts/python/tests/run_type_tests.py | 3 ++- shared/static/scripts/sx-browser.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/python/tests/run_continuation_tests.py b/hosts/python/tests/run_continuation_tests.py index 0daeb28..5822878 100644 --- a/hosts/python/tests/run_continuation_tests.py +++ b/hosts/python/tests/run_continuation_tests.py @@ -12,7 +12,7 @@ sys.path.insert(0, _PROJECT) # Bootstrap a fresh sx_ref with continuations enabled print("Bootstrapping with --extensions continuations ...") result = subprocess.run( - [sys.executable, os.path.join(_HERE, "bootstrap_py.py"), + [sys.executable, os.path.join(_HERE, "..", "bootstrap.py"), "--extensions", "continuations"], capture_output=True, text=True, cwd=_PROJECT, ) diff --git a/hosts/python/tests/run_type_tests.py b/hosts/python/tests/run_type_tests.py index 612b073..d7b0806 100644 --- a/hosts/python/tests/run_type_tests.py +++ b/hosts/python/tests/run_type_tests.py @@ -5,6 +5,7 @@ import os, sys _HERE = os.path.dirname(os.path.abspath(__file__)) _PROJECT = os.path.abspath(os.path.join(_HERE, "..", "..", "..")) +_SPEC_DIR = os.path.join(_PROJECT, "spec") _SPEC_TESTS = os.path.join(_PROJECT, "spec", "tests") _WEB_TESTS = os.path.join(_PROJECT, "web", "tests") sys.path.insert(0, _PROJECT) @@ -174,7 +175,7 @@ with open(os.path.join(_SPEC_TESTS, "test-framework.sx")) as f: trampoline(eval_expr(expr, env)) # Load types module -with open(os.path.join(_HERE, "types.sx")) as f: +with open(os.path.join(_SPEC_DIR, "types.sx")) as f: for expr in parse_all(f.read()): trampoline(eval_expr(expr, env)) diff --git a/shared/static/scripts/sx-browser.js b/shared/static/scripts/sx-browser.js index 1b914d8..b7ace62 100644 --- a/shared/static/scripts/sx-browser.js +++ b/shared/static/scripts/sx-browser.js @@ -14,7 +14,7 @@ // ========================================================================= var NIL = Object.freeze({ _nil: true, toString: function() { return "nil"; } }); - var SX_VERSION = "2026-03-15T02:29:18Z"; + var SX_VERSION = "2026-03-15T10:01:33Z"; function isNil(x) { return x === NIL || x === null || x === undefined; } function isSxTruthy(x) { return x !== false && !isNil(x); }