From 11c89b14aad0c931eb83e64b1f2b5f0fea596fbf Mon Sep 17 00:00:00 2001 From: isis lovecruft Date: Mon, 14 Aug 2023 16:32:11 -0700 Subject: [PATCH] Fix typo in unit test assertion. Closes #108. --- tests/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mod.rs b/tests/mod.rs index f6b3982..51f9fd8 100644 --- a/tests/mod.rs +++ b/tests/mod.rs @@ -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;