Skip to content

Commit 177348f

Browse files
committed
Unignore some more libcore tests
1 parent ef4186a commit 177348f

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

patches/0023-core-Ignore-failing-tests.patch

+4-20
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,15 @@ index c9096b7..be37fcd 100644
3838
}
3939

4040
#[test]
41-
+#[ignore]
41+
+#[ignore] // checked_mul impl not yet checking for overflow
4242
fn test_iterator_step_by_nth_overflow() {
4343
#[cfg(target_pointer_width = "8")]
4444
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)));
6145
@@ -2305,6 +2308,7 @@ fn test_repeat_with_take_collect() {
6246
}
6347

6448
#[test]
65-
+#[ignore]
49+
+#[ignore] // checked_mul impl not yet checking for overflow
6650
fn test_successors() {
6751
let mut powers_of_10 = successors(Some(1_u16), |n| n.checked_mul(10));
6852
assert_eq!(powers_of_10.by_ref().collect::<Vec<_>>(), &[1, 10, 100, 1_000, 10_000]);
@@ -74,7 +58,7 @@ index a17c094..5bb11d2 100644
7458
}
7559

7660
#[test]
77-
+#[ignore]
61+
+#[ignore] // checked_mul impl not yet checking for overflow
7862
fn from_str_issue7588() {
7963
let u: Option<u8> = u8::from_str_radix("1000", 10).ok();
8064
assert_eq!(u, None);
@@ -102,7 +86,7 @@ index fac70c4..9107a02 100644
10286
}
10387

10488
#[test]
105-
+#[ignore]
89+
+#[ignore] // checked_mul impl not yet checking for overflow
10690
fn checked_mul() {
10791
assert_eq!(Duration::new(0, 1).checked_mul(2), Some(Duration::new(0, 2)));
10892
assert_eq!(Duration::new(1, 1).checked_mul(3), Some(Duration::new(3, 3)));

0 commit comments

Comments
 (0)