Skip to content

Commit 3708865

Browse files
committed
Re-introduce bits of vec-lib test that blocked on now-fixed issue rust-lang#108.
1 parent 1ae13b3 commit 3708865

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/run-pass/vec-lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ fn id(uint x) -> uint {
1414
fn test_init_fn() {
1515
let fn(uint)->uint op = id;
1616
let vec[uint] v = std._vec.init_fn[uint](op, uint(5));
17-
// FIXME #108: Can't call templated function twice in the same
18-
// program, at the moment.
19-
//check (std._vec.len[uint](v) == uint(5));
17+
check (std._vec.len[uint](v) == uint(5));
2018
check (v.(0) == uint(0));
2119
check (v.(1) == uint(1));
2220
check (v.(2) == uint(2));
@@ -27,9 +25,7 @@ fn test_init_fn() {
2725
fn test_slice() {
2826
let vec[int] v = vec(1,2,3,4,5);
2927
auto v2 = std._vec.slice[int](v, 2, 4);
30-
// FIXME #108: Can't call templated function twice in the same
31-
// program, at the moment.
32-
//check (std._vec.len[int](v2) == uint(2));
28+
check (std._vec.len[int](v2) == uint(2));
3329
check (v2.(0) == 3);
3430
check (v2.(1) == 4);
3531
}

0 commit comments

Comments
 (0)