aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Frostig <[email protected]>2010-07-28 18:14:33 -0700
committerRoy Frostig <[email protected]>2010-07-28 18:14:33 -0700
commitdfcf21ca821ee781074139222b3391dae40bf835 (patch)
tree828998505d47e47ec52bf8507583576d518e6e20 /src
parentBurn the mac and win trees less. Deque test is XFAILed, despite doing fine o... (diff)
downloadrust-dfcf21ca821ee781074139222b3391dae40bf835.tar.xz
rust-dfcf21ca821ee781074139222b3391dae40bf835.zip
Another deque test commented out.
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/lib-deque.rs20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/test/run-pass/lib-deque.rs b/src/test/run-pass/lib-deque.rs
index 188b5ec5..c7516e3d 100644
--- a/src/test/run-pass/lib-deque.rs
+++ b/src/test/run-pass/lib-deque.rs
@@ -91,6 +91,8 @@ type taggypar[T] = tag(onepar(int),
twopar(int, int),
threepar(int, int, int));
+type reccy = rec(int x, int y, taggy t);
+
fn main() {
fn inteq(&int a, &int b) -> bool {
ret a == b;
@@ -148,6 +150,9 @@ fn main() {
}
}
+ fn reccyeq(&reccy a, &reccy b) -> bool {
+ ret (a.x == b.x && a.y == b.y && taggyeq(a.t, b.t));
+ }
log "test simple";
test_simple();
@@ -172,7 +177,6 @@ fn main() {
test_parameterized[@int](eq2, @5, @72, @64, @175);
*/
-
log "test parameterized: taggy";
let eqfn[taggy] eq3 = bind taggyeq(_, _);
@@ -192,5 +196,19 @@ fn main() {
*/
+ /*
+ * FIXME: Segfault.
+
+ log "test parameterized: reccy";
+ let reccy reccy1 = rec(x=1, y=2, t=one(1));
+ let reccy reccy2 = rec(x=345, y=2, t=two(1, 2));
+ let reccy reccy3 = rec(x=1, y=777, t=three(1, 2, 3));
+ let reccy reccy4 = rec(x=19, y=252, t=two(17, 42));
+ let eqfn[reccy] eq5 = bind reccyeq(_, _);
+ test_parameterized[reccy](eq5,
+ reccy1, reccy2, reccy3, reccy4);
+
+ */
+
log "done";
}