Skip to content

test(pksave): kill the fixed-point mutation survivors - #45

Merged
kasbuunk merged 1 commit into
mainfrom
claude/pokemon-open-issues-3x5qlx
Jul 17, 2026
Merged

test(pksave): kill the fixed-point mutation survivors#45
kasbuunk merged 1 commit into
mainfrom
claude/pokemon-open-issues-3x5qlx

Conversation

@kasbuunk

Copy link
Copy Markdown
Owner

Follow-up to #44, closing out #33's verification pass. The targeted re-run (522 mutants over the affected functions) showed 5 survivors whose original test data made the mutated arithmetic a fixed point — slot 0 makes +0 == -0, party index 2 makes 2+2 == 2*2, species-list bytes went unasserted after swap_party_box/replace_raw, and the item quantity byte only feeds a diagnostic no test checked. Each now has a test with data where the mutation diverges, plus the sixth +0-constant equivalent documented in .cargo/mutants.toml.

Verified: cargo test --workspace green, fmt clean; a final targeted cargo-mutants pass over these five functions is running to confirm the kills (evidence lands on #33).

🤖 Generated with Claude Code

https://claude.ai/code/session_01BSxh62iGqh4bffn8hRcTME


Generated by Claude Code

The first verification pass showed five survivors whose original test
data made the mutated arithmetic a fixed point: swap at slot 0 (+0 ==
-0), a tail fill starting at party index 2 (2+2 == 2*2), species-list
writes never asserted after swap_party_box/replace_raw, and the item
quantity byte only reaching a diagnostic no test checked. Cover each
with data where the mutation diverges: swap(1,2) with a species-list
assert, species-list asserts on both sides of swap_party_box, a
withdraw into a one-mon party pinning sentinel and zero fill, and a
W-ITEMS-QTY-ZERO span test.

Also records the sixth +0-constant equivalent (party_append_raw's
count-byte write) in .cargo/mutants.toml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BSxh62iGqh4bffn8hRcTME
@kasbuunk
kasbuunk enabled auto-merge (rebase) July 17, 2026 20:16
@kasbuunk
kasbuunk merged commit c0eeaf3 into main Jul 17, 2026
14 checks passed
@kasbuunk
kasbuunk deleted the claude/pokemon-open-issues-3x5qlx branch July 17, 2026 20:17
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.

2 participants