Skip to content

Fix invalid @test message call in e2e_test.jl - #29

Merged
hyperpolymath merged 2 commits into
mainfrom
fix/e2e-test-macro
Jul 10, 2026
Merged

Fix invalid @test message call in e2e_test.jl#29
hyperpolymath merged 2 commits into
mainfrom
fix/e2e-test-macro

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

test/e2e_test.jl:112 used @test (cond) "message", but Julia's @test macro does not accept a fail-message argument — this raised "invalid test macro call" at macro-expansion time, aborting the entire E2E suite before any assertion executed. Pre-existing on main; surfaced while finishing the rename.

Fix: compute the serialisability predicate, @warn with the offending key/type on failure (preserving the original diagnostic), then @test the predicate.

🤖 Generated with Claude Code

hyperpolymath and others added 2 commits July 10, 2026 16:32
Julia's `@test` does not accept a fail-message argument, so
`@test (cond) "Key $key ..."` raised "invalid test macro call" at
macro-expansion time, aborting the entire E2E suite before any
assertion ran.

Compute the serialisability predicate, emit an informative @warn
naming the offending key/type on failure, then assert the predicate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hyperpolymath
hyperpolymath merged commit 47679e0 into main Jul 10, 2026
13 of 22 checks passed
@hyperpolymath
hyperpolymath deleted the fix/e2e-test-macro branch July 10, 2026 16:53
@sonarqubecloud

Copy link
Copy Markdown

hyperpolymath added a commit that referenced this pull request Jul 10, 2026
…lity assertion) (#31)

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](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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