Skip to content

Commit 3e5f88f

Browse files
committed
---
yaml --- r: 102509 b: refs/heads/auto c: 1f15d24 h: refs/heads/master i: 102507: ad54cb2 v: v3
1 parent 2ffd888 commit 3e5f88f

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 1388c053a8b59347b607674fb5b83910d309aa9b
16+
refs/heads/auto: 1f15d24243078903410176a0924bd5d09fe1c2b8
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libstd/num/int.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,3 @@ impl CheckedMul for int {
120120
}
121121
}
122122
}
123-
124-
#[test]
125-
fn test_overflows() {
126-
assert!((::int::MAX > 0));
127-
assert!((::int::MIN <= 0));
128-
assert!((::int::MIN + ::int::MAX + 1 == 0));
129-
}

branches/auto/src/libstd/num/int_macros.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ mod tests {
445445
use num::CheckedDiv;
446446
use num::Bitwise;
447447

448+
#[test]
449+
fn test_overflows() {
450+
assert!(MAX > 0);
451+
assert!(MIN <= 0);
452+
assert_eq!(MIN + MAX + 1, 0);
453+
}
454+
448455
#[test]
449456
fn test_num() {
450457
num::test_num(10 as $T, 2 as $T);

branches/auto/src/libstd/num/uint.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,3 @@ impl CheckedMul for uint {
9090
}
9191
}
9292
}
93-
94-
#[test]
95-
fn test_overflows() {
96-
use uint;
97-
assert!((uint::MAX > 0u));
98-
assert!((uint::MIN <= 0u));
99-
assert!((uint::MIN + uint::MAX + 1u == 0u));
100-
}

branches/auto/src/libstd/num/uint_macros.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,13 @@ mod tests {
317317
use num::Bitwise;
318318
use u16;
319319

320+
#[test]
321+
fn test_overflows() {
322+
assert!(MAX > 0);
323+
assert!(MIN <= 0);
324+
assert_eq!(MIN + MAX + 1, 0);
325+
}
326+
320327
#[test]
321328
fn test_num() {
322329
num::test_num(10 as $T, 2 as $T);

0 commit comments

Comments
 (0)