Skip to content

Remove unused test vector parameters in bitvector test#5331

Merged
reneme merged 1 commit intorandombit:masterfrom
KaganCanSit:remove-bitvector-wrong-test-vector-param
Feb 16, 2026
Merged

Remove unused test vector parameters in bitvector test#5331
reneme merged 1 commit intorandombit:masterfrom
KaganCanSit:remove-bitvector-wrong-test-vector-param

Conversation

@KaganCanSit
Copy link
Contributor

Hello,

This PR contains the removal of unnecessary test parameters. I noticed this today.

check_set() iterates over bits[0..size()-1]. The expected set of 20 values was never visited because both the lhs and rhs are 20-bit vectors (valid indices: 0..19), and this expectation was silently skipped without being tested. The correct OR result of the two operands is {0,1,4,15,16,17,18}.

I don't think this will have any negative effects. It's just more correct for it not to exist at all than for it to be silently skipped.

Regards.

@randombit randombit requested a review from reneme February 14, 2026 13:47
@coveralls
Copy link

Coverage Status

coverage: 90.062%. remained the same
when pulling 7bf1fe7 on KaganCanSit:remove-bitvector-wrong-test-vector-param
into fa5638d on randombit:master.

Copy link
Collaborator

@reneme reneme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eagle eyes! Yeah, absolutely. Thanks.

@reneme reneme merged commit 5722005 into randombit:master Feb 16, 2026
47 checks passed
@KaganCanSit KaganCanSit deleted the remove-bitvector-wrong-test-vector-param branch February 17, 2026 00:44
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.

3 participants