Skip to content

Commit 4a0c7eb

Browse files
committed
Use assert_eq! rather than assert!
The previous code was passing "true" as the panic! error value.
1 parent 668c647 commit 4a0c7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ mod tests {
16331633
assert_eq!((3 as $T).is_power_of_two(), false);
16341634
assert_eq!((4 as $T).is_power_of_two(), true);
16351635
assert_eq!((5 as $T).is_power_of_two(), false);
1636-
assert!(($T::MAX / 2 + 1).is_power_of_two(), true);
1636+
assert_eq!(($T::MAX / 2 + 1).is_power_of_two(), true);
16371637
}
16381638
)
16391639
}

0 commit comments

Comments
 (0)