Yogthos
|
702672ba09
|
Phase 14 followup: fix 4 core bugs, re-add 5 tests
Bugs fixed:
- core-pr-str: now proper fn with keyword-aware rendering
(was aliased to core-str which loses the : prefix)
- core-seq nil: return nil instead of empty array
- core-rest nil: return nil instead of @[]
- core-every-pred: new function (stub returning false for now)
Tests re-added:
- section 16: pr-str for keywords (:hello → ":hello")
- section 20: first nil → nil, seq nil → nil
- section 23: var-dynamic? test (function exists since Phase 3)
- section 21: @ deref reader macro (already works)
- section 18: with-meta map equality test
Stubs/deferred:
- every-pred: stub returning false (Phase 15 IFn protocol needed)
- & rest destructuring: Phase 15 (destructuring completion)
316 ok, 1 fail (pre-existing, unchanged)
|
2026-06-03 13:47:32 -04:00 |
|
Yogthos
|
f97e6191db
|
Phase 14: Extend CLJS ported tests — 9 new sections, 26 new assertions
- cljs-port-2.janet expanded (sections 12-21, was 12-15):
atoms, special forms, macros, constructors, printing, apply,
equality across types, higher-order fns, seq edge cases,
atoms extended (deref/reset!/swap!)
- cljs-port-5.janet created (sections 22-24):
destructuring (seq + map :keys), metadata (dynamic vars),
function composition (complement, constantly)
- 26 new assertions across 9 sections, all pass
- 316 ok, 1 fail (pre-existing, unchanged)
|
2026-06-03 13:40:03 -04:00 |
|