Skip to content

compiler: test coverage for kernel set-membership symbols \in/\notin/\ni (fixes #40) - #747

Merged
d-q222 merged 1 commit into
mainfrom
agent/daniel-muse-lead/membership-test
Sep 17, 2026
Merged

d-q222 merged 1 commit into
mainfrom
agent/daniel-muse-lead/membership-test

Conversation

@d-q222

@d-q222 d-q222 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Scope

Fixes #40: adds the missing regression test for kernel set-membership
symbols (\in, \notin, \ni) in math mode. crates/compiler/tests/membership.rs
only (new file, 80 lines); no implementation change — the dispatch already
existed (("in", "∈")/("notin", "∉")/("ni", "∋") in
crates/compiler/src/math.rs) and was independently verified working
end-to-end before this PR: zero diagnostics, correct glyphs. The gap was
purely that no test on main covered it — neither a named test nor the
generic supported.rs inventory sweep (these three names aren't in that
inventory).

Overlap check

Test-only addition, new file, no overlap with any other open PR.

Test results

4 new tests (in_renders_element_of, notin_renders_not_an_element_of,
ni_renders_contains_as_member, combined_membership_case_renders_all_three_glyphs
— the last one guards against a dispatch regression breaking one name but
not the others).

Independently re-verified by the supervisor (fresh CARGO_TARGET_DIR):

  • cargo test --test membership: 4 passed, 0 failed, matches the lane's
    own report exactly.
  • Mutation check (re-run independently): commented out ("notin", "∉"),
    confirmed exactly the 2 notin-touching tests fail with
    "\notin is not supported in math mode" (UnsupportedFeature); restored,
    git diff empty, 4/4 pass again.
  • Full crates/compiler suite (fresh target dir): all suites green, 0
    failures.

Not done

Nothing else in scope. A natural follow-up (not part of this slice): the
lane noted neighbouring relation glyphs in the same table region
(\subset, \subseteq, \supset) also lack exact-glyph test coverage —
same shape of gap, different issue if wanted.

🤖 Generated with Claude Code

$a \in B, c \notin D, E \ni f$ compiles with zero diagnostics and
renders a∈B,c∉D,E∋f through compile_full_project; per-symbol tests pin
each of ∈ U+2208, ∉ U+2209, ∋ U+220B so a future dispatch regression in
command_glyph cannot silently drop one name.

Implementation-Agent: muse-spark-1.3-contributor
@d-q222
d-q222 merged commit b46b326 into main Sep 17, 2026
21 of 22 checks passed
d-q222 added a commit that referenced this pull request Sep 17, 2026
 #784

All eight independently reviewed APPROVE. Batch verification: compiler
935/0, render-pipeline 487/0, perf-bench 14/0, perf gate OK (270 metrics,
no regression), swift build --build-tests OK, CompletionTests 29/0.

Commit-Executor: daniel-parent
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
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.

HW1 set-membership command is unsupported in existing compiler math recognition

1 participant