diff --git a/ctutils/src/choice.rs b/ctutils/src/choice.rs index 6163c69a..8591da86 100644 --- a/ctutils/src/choice.rs +++ b/ctutils/src/choice.rs @@ -198,8 +198,8 @@ mod tests { #[test] fn to_bool() { - assert_eq!(Choice::new(0).to_bool(), false); - assert_eq!(Choice::new(1).to_bool(), true); + assert!(!Choice::new(0).to_bool()); + assert!(Choice::new(1).to_bool()); } #[test]