Files
rose-ash/spec/tests/test-debug.sx
giles 71cf5b8472 HS tests: replace NOT-IMPLEMENTED error stubs with safe no-ops; runner/compiler/runtime improvements
- Generators (generate-sx-tests.py, generate-sx-conformance-dev.py): emit
  (hs-cleanup!) stubs instead of (error "NOT IMPLEMENTED: ..."); add
  compile-only path that guards hs-compile inside (guard (_e (true nil)) ...)
- Regenerate test-hyperscript-behavioral.sx / test-hyperscript-conformance-dev.sx
  so stub tests pass instead of raising on every run
- hs compiler/parser/runtime/integration: misc fixes surfaced by the regenerated suite
- run_tests.ml + sx_primitives.ml: supporting runner/primitives changes
- Add spec/tests/test-debug.sx scratch suite; minor tweaks to tco / io-suspension / parser / examples tests

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 13:31:17 +00:00

6 lines
409 B
Plaintext

(defsuite "debug"
(deftest "stringify direct" (assert= "42" (json-stringify 42)))
(deftest "stringify dict" (assert= "{\"foo\":\"bar\"}" (json-stringify {"foo" "bar"})))
(deftest "hs-coerce jsonstring" (assert= "{\"foo\":\"bar\"}" (hs-coerce (hs-make-object (list (list "foo" "bar"))) "JSONString")))
(deftest "eval-hs jsonstring" (assert= "{\"foo\":\"bar\"}" (eval-hs "{foo:'bar'} as JSONString"))))