Skip to content

Commit

Permalink
Auto merge of #23160 - rprichard:fix-numtest-assert, r=brson
Browse files Browse the repository at this point in the history
The previous code was passing "true" as the panic! error value.
  • Loading branch information
bors committed Mar 8, 2015
2 parents 97ca2a1 + 4a0c7eb commit d30609f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
)
}
Expand Down

0 comments on commit d30609f

Please sign in to comment.