Use assert_eq! rather than assert!
The previous code was passing "true" as the panic! error value.
This commit is contained in:
parent
668c647408
commit
4a0c7ebc87
1 changed files with 1 additions and 1 deletions
|
@ -1633,7 +1633,7 @@ mod tests {
|
||||||
assert_eq!((3 as $T).is_power_of_two(), false);
|
assert_eq!((3 as $T).is_power_of_two(), false);
|
||||||
assert_eq!((4 as $T).is_power_of_two(), true);
|
assert_eq!((4 as $T).is_power_of_two(), true);
|
||||||
assert_eq!((5 as $T).is_power_of_two(), false);
|
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);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue