Skip to content

Commit f7947bc

Browse files
committed
Unstub some tests
1 parent 8073af7 commit f7947bc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/libcoretest/option.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ fn test_ord() {
219219
assert!(big > None);
220220
}
221221

222-
/* FIXME(#20575)
223222
#[test]
224223
fn test_collect() {
225224
let v: Option<Vec<isize>> = (0..0).map(|_| Some(0)).collect();
@@ -241,7 +240,7 @@ fn test_collect() {
241240

242241
assert!(v == None);
243242
}
244-
*/
243+
245244

246245
#[test]
247246
fn test_cloned() {

src/libcoretest/result.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ fn test_impl_map_err() {
6565
assert!(Err::<isize, isize>(1).map_err(|x| x + 1) == Err(2));
6666
}
6767

68-
/* FIXME(#20575)
6968
#[test]
7069
fn test_collect() {
7170
let v: Result<Vec<isize>, ()> = (0..0).map(|_| Ok::<isize, ()>(0)).collect();
@@ -86,7 +85,6 @@ fn test_collect() {
8685
let v: Result<Vec<()>, isize> = functions.iter_mut().map(|f| (*f)()).collect();
8786
assert!(v == Err(1));
8887
}
89-
*/
9088

9189
#[test]
9290
fn test_fmt_default() {

0 commit comments

Comments
 (0)