Skip to content

Commit 18e2026

Browse files
author
Jorge Aparicio
committed
coretest: remove/ignore tests
1 parent 3744850 commit 18e2026

File tree

4 files changed

+8
-38
lines changed

4 files changed

+8
-38
lines changed

src/libcoretest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ mod num;
3030
mod ops;
3131
mod option;
3232
mod ptr;
33-
mod raw;
3433
mod result;
3534
mod slice;
3635
mod str;

src/libcoretest/option.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ fn test_ord() {
220220
assert!(big > None);
221221
}
222222

223+
/* FIXME(#20575)
223224
#[test]
224225
fn test_collect() {
225226
let v: Option<Vec<int>> = range(0i, 0).map(|_| Some(0i)).collect();
@@ -234,12 +235,14 @@ fn test_collect() {
234235
assert!(v == None);
235236
236237
// test that it does not take more elements than it needs
237-
let mut functions = [|| Some(()), || None, || panic!()];
238+
let mut functions: [Box<Fn() -> Option<()>>; 3] =
239+
[box || Some(()), box || None, box || panic!()];
238240
239241
let v: Option<Vec<()>> = functions.iter_mut().map(|f| (*f)()).collect();
240242
241243
assert!(v == None);
242244
}
245+
*/
243246

244247
#[test]
245248
fn test_cloned() {

src/libcoretest/raw.rs

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/libcoretest/result.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ pub fn test_impl_map_err() {
6767
assert!(Err::<int, int>(1).map_err(|x| x + 1) == Err(2));
6868
}
6969

70+
/* FIXME(#20575)
7071
#[test]
7172
fn test_collect() {
7273
let v: Result<Vec<int>, ()> = range(0i, 0).map(|_| Ok::<int, ()>(0)).collect();
@@ -81,11 +82,13 @@ fn test_collect() {
8182
assert!(v == Err(2));
8283
8384
// test that it does not take more elements than it needs
84-
let mut functions = [|| Ok(()), || Err(1i), || panic!()];
85+
let mut functions: [Box<Fn() -> Result<(), int>>; 3] =
86+
[box || Ok(()), box || Err(1i), box || panic!()];
8587
8688
let v: Result<Vec<()>, int> = functions.iter_mut().map(|f| (*f)()).collect();
8789
assert!(v == Err(1));
8890
}
91+
*/
8992

9093
#[test]
9194
pub fn test_fmt_default() {

0 commit comments

Comments
 (0)