Arithmetic and comparisons lowered to raw Chez ops, so an operand outside Chez's tower (BigDecimal) crashed with a raw condition, and Chez contagion leaked: (* 1.0 0) gave exact 0 where the JVM gives 0.0, (* ##Inf 0) gave 0 instead of ##NaN, (/ 1 0) raised an untyped error. One seam now (host/chez/seq.ss): call position emits jolt-n* macros with the both-Chez-numbers fast path open-coded; value position folds through the same binary ops. Anything outside the tower falls to per-op slow hooks that java/bigdec.ss extends, so bigdec arithmetic works in every position (the old static-only :bigdec typing limitation is gone). JVM rules patched into the fast path: a double operand wins, an exact zero divisor throws ArithmeticException while a double zero divisor yields Inf/NaN, quot/rem/mod cover ratios and doubles, min/max return the original operand with NaN winning, a nil operand is NPE and a non-number CCE, zero-arg -// throw ArityException at runtime instead of failing expansion. Also: with-precision now binds *math-context* and bigdec results round with real RoundingMode semantics (UNNECESSARY throws; division rounds to precision instead of throwing); rationalize goes through the shortest decimal print like BigDecimal.valueOf (the identity stub is gone); ratios coerce to bigdec like Numbers.toBigDecimal; min/max int-literal operands no longer coerce to flonum in the numeric pass. Perf neutral: fib and seq benches unchanged (the fast path is two type checks the optimizer folds); hinted fl/fx paths untouched. 19 JVM-certified corpus rows; cts baseline 5614->5730 pass, 192->88 errors, 84->79 baselined namespaces.
82 lines
2.6 KiB
Text
82 lines
2.6 KiB
Text
# clojure-test-suite known failures: <namespace> <fail> <error>
|
|
# The gate fails on any per-namespace change, worse OR better; regenerate
|
|
# with: JOLT_CTS_WRITE_BASELINE=1 host/chez/cts.sh
|
|
clojure.core-test.abs 1 0
|
|
clojure.core-test.add-watch 0 3
|
|
clojure.core-test.ancestors 9 0
|
|
clojure.core-test.atom 14 0
|
|
clojure.core-test.bigint 6 0
|
|
clojure.core-test.bit-set 1 0
|
|
clojure.core-test.boolean-qmark 0 3
|
|
clojure.core-test.byte 7 5
|
|
clojure.core-test.char 1 0
|
|
clojure.core-test.compare 1 0
|
|
clojure.core-test.conj 1 0
|
|
clojure.core-test.contains-qmark 3 0
|
|
clojure.core-test.counted-qmark 1 0
|
|
clojure.core-test.dec 1 0
|
|
clojure.core-test.denominator 0 3
|
|
clojure.core-test.derive 21 0
|
|
clojure.core-test.descendants 4 0
|
|
clojure.core-test.double 0 4
|
|
clojure.core-test.double-qmark 3 0
|
|
clojure.core-test.empty 1 0
|
|
clojure.core-test.eq 2 0
|
|
clojure.core-test.eval 0 3
|
|
clojure.core-test.even-qmark 1 0
|
|
clojure.core-test.float 4 4
|
|
clojure.core-test.get 0 1
|
|
clojure.core-test.ifn-qmark 2 0
|
|
clojure.core-test.inc 1 0
|
|
clojure.core-test.int 4 5
|
|
clojure.core-test.int-qmark 3 0
|
|
clojure.core-test.intern 2 0
|
|
clojure.core-test.keys 0 4
|
|
clojure.core-test.lazy-seq 3 0
|
|
clojure.core-test.long 2 5
|
|
clojure.core-test.minus 2 0
|
|
clojure.core-test.mod 23 0
|
|
clojure.core-test.neg-int-qmark 1 0
|
|
clojure.core-test.not-eq 3 0
|
|
clojure.core-test.nth 0 1
|
|
clojure.core-test.num 2 1
|
|
clojure.core-test.number-qmark 3 0
|
|
clojure.core-test.numerator 0 3
|
|
clojure.core-test.odd-qmark 1 0
|
|
clojure.core-test.parents 10 0
|
|
clojure.core-test.parse-uuid 3 0
|
|
clojure.core-test.peek 2 0
|
|
clojure.core-test.plus 11 0
|
|
clojure.core-test.plus-squote 11 0
|
|
clojure.core-test.pop 0 1
|
|
clojure.core-test.pos-int-qmark 1 0
|
|
clojure.core-test.quot 30 0
|
|
clojure.core-test.rand-nth 0 1
|
|
clojure.core-test.rational-qmark 3 0
|
|
clojure.core-test.realized-qmark 3 0
|
|
clojure.core-test.reduce 0 1
|
|
clojure.core-test.rem 21 0
|
|
clojure.core-test.remove-watch 0 1
|
|
clojure.core-test.run-bang 1 0
|
|
clojure.core-test.select-keys 2 0
|
|
clojure.core-test.seqable-qmark 1 0
|
|
clojure.core-test.short 7 5
|
|
clojure.core-test.shuffle 1 0
|
|
clojure.core-test.some-fn 3 0
|
|
clojure.core-test.sort-by 2 0
|
|
clojure.core-test.special-symbol-qmark 4 0
|
|
clojure.core-test.star 13 0
|
|
clojure.core-test.star-squote 13 0
|
|
clojure.core-test.transient 23 0
|
|
clojure.core-test.underive 7 0
|
|
clojure.core-test.update 1 0
|
|
clojure.core-test.vals 0 3
|
|
clojure.core-test.vec 1 0
|
|
clojure.core-test.when-let 1 0
|
|
clojure.edn-test.read-string 46 5
|
|
clojure.string-test.capitalize 0 4
|
|
clojure.string-test.ends-with-qmark 1 4
|
|
clojure.string-test.escape 1 0
|
|
clojure.string-test.lower-case 0 4
|
|
clojure.string-test.starts-with-qmark 1 10
|
|
clojure.string-test.upper-case 0 4
|