We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95a79f2 commit 7c5afc2Copy full SHA for 7c5afc2
uefi-raw/src/lib.rs
@@ -190,10 +190,10 @@ mod tests {
190
assert_eq!(Boolean::from(false).0, 0);
191
assert_eq!(Boolean::TRUE.0, 1);
192
assert_eq!(Boolean::FALSE.0, 0);
193
- assert_eq!(bool::from(Boolean(0b0)), false);
194
- assert_eq!(bool::from(Boolean(0b1)), true);
+ assert!(!bool::from(Boolean(0b0)));
+ assert!(bool::from(Boolean(0b1)));
195
// We do it as in C: Every bit pattern not 0 is equal to true.
196
- assert_eq!(bool::from(Boolean(0b11111110)), true);
197
- assert_eq!(bool::from(Boolean(0b11111111)), true);
+ assert!(bool::from(Boolean(0b11111110)));
+ assert!(bool::from(Boolean(0b11111111)));
198
}
199
0 commit comments