Skip to content

Commit 9ba3e98

Browse files
committed
---
yaml --- r: 348 b: refs/heads/master c: 3708865 h: refs/heads/master v: v3
1 parent 4ce6d72 commit 9ba3e98

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1ae13b3fdd02593581b8ccd374ea4971d473e9dc
2+
refs/heads/master: 37088659061fad1f53513ec7088802ef6dd7af57

trunk/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)