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:
bors 2015-03-08 05:20:17 +00:00
commit d30609ffd7

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);
}
)
}