mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
Auto merge of #23160 - rprichard:fix-numtest-assert, r=brson
The previous code was passing "true" as the panic! error value.
This commit is contained in:
@@ -1633,7 +1633,7 @@ fn $test_name() {
|
||||
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);
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user