Fallout from changes for overflow-checking during constant evaluation.

This commit is contained in:
Felix S. Klock II
2015-03-30 01:23:15 +02:00
parent 6808e414c7
commit 8d54ea3ec9
6 changed files with 17 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ mod tests {
fn test_overflows() {
assert!(MAX > 0);
assert!(MIN <= 0);
assert!(MIN + MAX + 1 == 0);
assert!((MIN + MAX).wrapping_add(1) == 0);
}
#[test]