diff options
| author | Roy Frostig <[email protected]> | 2010-07-22 12:49:11 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-07-22 12:49:11 -0700 |
| commit | 37088659061fad1f53513ec7088802ef6dd7af57 (patch) | |
| tree | 2649881bd999e88022a7818270a11723e08e2981 /src | |
| parent | Source FIXME annotations for issue #81 and a correction to STMT_bind fmt. (diff) | |
| download | rust-37088659061fad1f53513ec7088802ef6dd7af57.tar.xz rust-37088659061fad1f53513ec7088802ef6dd7af57.zip | |
Re-introduce bits of vec-lib test that blocked on now-fixed issue #108.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/vec-lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/run-pass/vec-lib.rs b/src/test/run-pass/vec-lib.rs index 11dd2ffd..953b8c29 100644 --- a/src/test/run-pass/vec-lib.rs +++ b/src/test/run-pass/vec-lib.rs @@ -14,9 +14,7 @@ fn id(uint x) -> uint { fn test_init_fn() { let fn(uint)->uint op = id; let vec[uint] v = std._vec.init_fn[uint](op, uint(5)); - // FIXME #108: Can't call templated function twice in the same - // program, at the moment. - //check (std._vec.len[uint](v) == uint(5)); + check (std._vec.len[uint](v) == uint(5)); check (v.(0) == uint(0)); check (v.(1) == uint(1)); check (v.(2) == uint(2)); @@ -27,9 +25,7 @@ fn test_init_fn() { fn test_slice() { let vec[int] v = vec(1,2,3,4,5); auto v2 = std._vec.slice[int](v, 2, 4); - // FIXME #108: Can't call templated function twice in the same - // program, at the moment. - //check (std._vec.len[int](v2) == uint(2)); + check (std._vec.len[int](v2) == uint(2)); check (v2.(0) == 3); check (v2.(1) == 4); } |