@@ -38,31 +38,15 @@ index c9096b7..be37fcd 100644
38
38
}
39
39
40
40
#[test]
41
- + #[ignore]
41
+ + #[ignore] // checked_mul impl not yet checking for overflow
42
42
fn test_iterator_step_by_nth_overflow() {
43
43
#[cfg(target_pointer_width = "8")]
44
44
type Bigger = u16;
45
- @@ -2184,6 +2185,7 @@ fn test_range_inclusive_folds() {
46
- }
47
-
48
- #[test]
49
- + #[ignore]
50
- fn test_range_size_hint() {
51
- assert_eq!((0..0usize).size_hint(), (0, Some(0)));
52
- assert_eq!((0..100usize).size_hint(), (100, Some(100)));
53
- @@ -2210,6 +2212,7 @@ fn test_range_size_hint() {
54
- }
55
-
56
- #[test]
57
- + #[ignore]
58
- fn test_range_inclusive_size_hint() {
59
- assert_eq!((1..=0usize).size_hint(), (0, Some(0)));
60
- assert_eq!((0..=0usize).size_hint(), (1, Some(1)));
61
45
@@ -2305,6 +2308,7 @@ fn test_repeat_with_take_collect() {
62
46
}
63
47
64
48
#[test]
65
- + #[ignore]
49
+ + #[ignore] // checked_mul impl not yet checking for overflow
66
50
fn test_successors() {
67
51
let mut powers_of_10 = successors(Some(1_u16), |n| n.checked_mul(10));
68
52
assert_eq!(powers_of_10.by_ref().collect::<Vec<_>>(), &[1, 10, 100, 1_000, 10_000]);
@@ -74,7 +58,7 @@ index a17c094..5bb11d2 100644
74
58
}
75
59
76
60
#[test]
77
- + #[ignore]
61
+ + #[ignore] // checked_mul impl not yet checking for overflow
78
62
fn from_str_issue7588() {
79
63
let u: Option<u8> = u8::from_str_radix("1000", 10).ok();
80
64
assert_eq!(u, None);
@@ -102,7 +86,7 @@ index fac70c4..9107a02 100644
102
86
}
103
87
104
88
#[test]
105
- + #[ignore]
89
+ + #[ignore] // checked_mul impl not yet checking for overflow
106
90
fn checked_mul() {
107
91
assert_eq!(Duration::new(0, 1).checked_mul(2), Some(Duration::new(0, 2)));
108
92
assert_eq!(Duration::new(1, 1).checked_mul(3), Some(Duration::new(3, 3)));
0 commit comments