Use assert_eq! rather than assert!

The previous code was passing "true" as the panic! error value.
This commit is contained in:
Ryan Prichard 2015-03-07 16:53:01 -08:00
parent 668c647408
commit 4a0c7ebc87

View File

@ -1633,7 +1633,7 @@ mod tests {
assert_eq!((3 as $T).is_power_of_two(), false);
assert_eq!((4 as $T).is_power_of_two(), true);
assert_eq!((5 as $T).is_power_of_two(), false);
assert!(($T::MAX / 2 + 1).is_power_of_two(), true);
assert_eq!(($T::MAX / 2 + 1).is_power_of_two(), true);
}
)
}