3d6f43260b
Add 21 new tests: scope/context, multi-signal, reactive DOM, VM HO forms
...
WASM browser tests (web/tests/test-wasm-browser.sx): 32 tests
- scope/context: push+read, default, nesting, pop reveals outer
- multi-signal: effect tracks 2 signals, computed from 2 sources,
unsubscribe on dependency change
- reactive DOM: computed expression attrs, map rendering, component
rendering, spread signal update, style attributes
- conditional: if/when/cond/let/begin in render-to-dom
VM HO form tests (lib/tests/test-vm.sx): +8 tests
- map, filter, reduce, for-each, some, every? in vm-eval
- nested map, map with closure over local
32/32 WASM (source+bytecode), 1593/1593 JS full (1 pre-existing silent).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-31 18:52:39 +00:00
e7fe6598c5
Expand WASM browser tests: 28 SX deftest forms
...
Added 13 new tests covering:
- Signal core: create, reset!, swap!, computed, effect re-run,
effect cleanup, batch
- DOM extended: nested elements, boolean attrs, nil attrs, multiple
children, HTML/DOM output match
- Reactive attrs: initial value, signal updates, nil removal,
multiple attrs on same element, multi-token spread
- Island scope: scope detection, disposer collection, context
visibility, defcomp rendering
- Conditional: if/when/cond/let/begin in render-to-dom
28/28 source, 28/28 bytecode.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-31 18:27:13 +00:00
9742d0236e
Convert WASM browser tests to SX deftest forms
...
Tests moved from inline JS assertions to web/tests/test-wasm-browser.sx
using the standard deftest/defsuite/assert-equal framework. The JS driver
(test_wasm_native.js) now just boots the kernel, loads modules, and runs
the SX test file.
15/15 source, 15/15 bytecode.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-31 17:37:12 +00:00