Skip to content

Fix tests with cfg test123 enabled - #146

Merged
danlehmann merged 2 commits into
mainfrom
fix/test123-e0308
Aug 26, 2026
Merged

Fix tests with cfg test123 enabled#146
danlehmann merged 2 commits into
mainfrom
fix/test123-e0308

Conversation

@danlehmann

Copy link
Copy Markdown
Owner

No description provided.

With the test123 feature enabled, Foo::new_with_raw_value returns
Result<Foo, arbitrary_int::u2>. The assertion compared it against Err(3),
an integer literal, causing E0308 (mismatched types) during
'cargo test --all-features'. Compare against Err(u2::new(3)) instead,
mirroring the sibling assertion on the line above.
The existing debug and release test jobs only run with
--no-default-features, which compiles cfg-gated test code out. This is how a
compile error in the bitbybit-tests test123-gated bitenum test went
undetected. Add a job that runs 'cargo test --all-features' so every feature
combination is built and exercised.
@danlehmann danlehmann changed the title Fix tests with test123 enabled Fix tests with cfg test123 enabled Aug 26, 2026
@danlehmann
danlehmann merged commit 10fc061 into main Aug 26, 2026
16 checks passed
@danlehmann
danlehmann deleted the fix/test123-e0308 branch August 26, 2026 22:35
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