Source the conformance corpus from JVM Clojure; retire the prelude gate
corpus.edn :expected is now the value reference JVM Clojure produces, set by the new test/conformance/regen-corpus.clj (one JVM process, per-row thread watchdog). 167 rows moved to the JVM value: ratios (/ 1 2)=>1/2, doubles (double 3)=>3.0, shared-heap concurrency (the future/pmap/agent cases), clojure.math doubles. The JVM is the spec; jolt is measured against it. known-divergences.edn shrinks to the rows whose JVM value is an opaque host object that can't round-trip to source (Java arrays, transients, atoms, beans, proxies, chunks all print as #object[..@addr]) plus (fn* foo) and a few racy concurrency cases (:flaky). The zero-janet gate's allowlist becomes the set of host gaps vs the JVM spec (no Class/array/BigDecimal, :jolt reader, jolt's own printing). Math/clojure.math sqrt/pow/floor/trig now return doubles (Chez returns exact for exact args, e.g. (sqrt 9)=>3); JVM always returns a double. extract-corpus.janet no longer writes corpus.edn unless asked (the test runner imported it and was silently overwriting the JVM corpus with the spec sources' placeholder answers). The prelude parity gate is deleted — the zero-janet spine + certify.clj are the oracles. zero-janet 2678 (0 new divergences), certify 0 new / 0 stale, emit-test 330/330.
This commit is contained in:
parent
467ad75ff7
commit
da775802d6
13 changed files with 435 additions and 823 deletions
|
|
@ -1,9 +1,7 @@
|
|||
;; converters + string ops (jolt-t6cr) — host-coupled seed natives the Chez host
|
||||
;; must provide; def-var!'d into clojure.core, resolved in prelude mode. Loaded
|
||||
;; last (after jolt-pr-str), since `str` reuses the printer. Semantics match the
|
||||
;; Janet seed (core_print.janet str-render-one, core_io.janet core-compare,
|
||||
;; core_refs.janet int/double). jolt is all-flonum, so numeric results are
|
||||
;; flonums (int truncates toward zero, compare returns -1.0/0.0/1.0).
|
||||
;; converters + string ops — host-coupled natives def-var!'d into clojure.core,
|
||||
;; resolved in prelude mode. Loaded last (after jolt-pr-str), since `str` reuses
|
||||
;; the printer. int/long truncate toward zero to an exact integer; compare returns
|
||||
;; an exact -1/0/1; double yields a flonum.
|
||||
|
||||
;; str: nil -> "", string raw, char bare (not \c), regex -> raw source, else the
|
||||
;; printer (which renders collections with readable elements).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue