Skip to content

Return outlier_fences as a Vector, not a Tuple (fixes E2E serialisability assertion) - #31

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/outlier-fences-vector
Jul 10, 2026
Merged

Return outlier_fences as a Vector, not a Tuple (fixes E2E serialisability assertion)#31
hyperpolymath merged 1 commit into
mainfrom
fix/outlier-fences-vector

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

With the malformed @test macro fixed in #29, the E2E suite now actually runs its "report is JSON-serialisable" assertion — and catches a latent bug: descriptive_stats returned outlier_fences as a Tuple{Float64,Float64}, but the report contract only allows Number/String/Bool/Nothing/Vector.

Emit [lower, upper] as a Vector so the value round-trips as a JSON array. No consumer indexes it tuple-specifically (repo-wide grep). This is the last known-red piece of the E2E suite on main.

🤖 Generated with Claude Code

descriptive_stats' report is contractually JSON-serialisable
(Number/String/Bool/Nothing/Vector), but "outlier_fences" was a
Tuple{Float64,Float64}. The e2e serialisability assertion never
caught it because the malformed @test macro aborted the file before
that check ran; with the macro fixed, the suite now flags it.

Emit [lower, upper] as a Vector so the value round-trips as a JSON
array. No consumer indexes it tuple-specifically.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit f631afb into main Jul 10, 2026
26 checks passed
@hyperpolymath
hyperpolymath deleted the fix/outlier-fences-vector branch July 10, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant