Skip to content

Update tests.rs - #3105

Open
c1pher-ve wants to merge 1 commit into
openvm-org:mainfrom
c1pher-ve:main
Open

Update tests.rs#3105
c1pher-ve wants to merge 1 commit into
openvm-org:mainfrom
c1pher-ve:main

Conversation

@c1pher-ve

Copy link
Copy Markdown

The existing random shift tests have only a ~1.6% chance of hitting shift amounts that are exact multiples of LIMB_BITS (0, 8, 16, 24), where bit_shift == 0. Added a deterministic test that pins the shift amount to 8 and checks correct output for SLL, SRL, and SRA.

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