Skip to content

test for duplicate qualities - #117

Open
arvidn wants to merge 1 commit into
mainfrom
duplicate-qualities
Open

test for duplicate qualities#117
arvidn wants to merge 1 commit into
mainfrom
duplicate-qualities

Conversation

@arvidn

@arvidn arvidn commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Note

Low Risk
Test-only change with no production code paths modified; may fail CI until duplicate-quality handling is fixed.

Overview
Adds a focused regression test that locks in the invariant that Prover::get_qualities_for_challenge() must not return duplicate chain_links.

The test builds or reuses a deterministic k=18 plot in the temp dir, runs get_qualities_for_challenge with challenge index 5775 (little-endian in the first 4 bytes of the challenge), and asserts every returned quality has a unique chain_links via a HashSet. Comments document that this challenge currently yields two entries with only one unique chain, so the test is expected to fail until the prover/chainer deduplicates results—complementing the broader duplicate check already in test_plot_roundtrip.

Reviewed by Cursor Bugbot for commit 06298d0. Bugbot is set up for automated code reviews on this repo. Configure here.

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