Repository navigation
test(u4): strengthen parity boundary coverage - #233
Merged
RobinLinus merged 2 commits intoSep 25, 2026
Merged
Conversation
brenorb
added a commit
to brenorb/bitcoin-scripts
that referenced
this pull request
Sep 28, 2026
…ests with canonical API Resolve conflicts against origin/main 3d1001f in src/arithmetic/u4/parity.rs, src/arithmetic/u4/README.md, src/arithmetic/u4/mod.rs and knowledge/comparisons/arithmetic.md. - parity.rs: keep solving-bitcoin#233's numeric-range API, docs and all five tests (projects_all_nibble_parities_in_order, distinguishes_asymmetric_output_order, rejects_out_of_range_nibbles, rejects_zero_and_overlarge_batches, respects_combined_stack_frontier) plus the PR's four canonical tests and the separate U4_PARITY_CANONICAL_MAX_BATCH = 981 bound. - mod.rs: main's module list is a superset of the PR's sorted list. - README/comparison: keep rows from both sides; describe the numeric-range and canonical APIs separately. - Knowledge page and catalog: split the numeric-range and canonical-encoding descriptions; the range-only API is not claimed to enforce canonical encoding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
cargo test --locked --lib arithmetic::u4::paritycargo test --locked --test primitive_metrics u4_parity_metrics_are_current -- --exactpython3 tools/kb.py validaterustfmt --edition 2021 --check src/arithmetic/u4/parity.rsgit diff --checkThe repository-wide test suite was not run. The focused parity suite took 287.7s because it executes the absolute 982-item
OP_ROLLfrontier.