Skip to content

Commit

Permalink
Fix typo in unit test assertion.
Browse files Browse the repository at this point in the history
Closes #108.
  • Loading branch information
isislovecruft committed Aug 14, 2023
1 parent 705c207 commit 11c89b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ macro_rules! generate_integer_conditional_select_tests {
let x: $t = 0; // all 0 bits
let y: $t = !0; // all 1 bits

assert_eq!(<$t>::conditional_select(&x, &y, 0.into()), 0);
assert_eq!(<$t>::conditional_select(&x, &y, 0.into()), x);
assert_eq!(<$t>::conditional_select(&x, &y, 1.into()), y);

let mut z = x;
Expand Down

0 comments on commit 11c89b1

Please sign in to comment.