From d681f062c721a31574daaa15b81eba4be85cce2d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 18 Aug 2011 21:27:22 -0700 Subject: [PATCH] Clean up run-pass/fun-call-variants Uncomment parts of the test that work correctly now, enable pretty testing --- src/test/run-pass/fun-call-variants.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/test/run-pass/fun-call-variants.rs b/src/test/run-pass/fun-call-variants.rs index 75619cec1874..6409767ab400 100644 --- a/src/test/run-pass/fun-call-variants.rs +++ b/src/test/run-pass/fun-call-variants.rs @@ -1,6 +1,3 @@ -// xfail-pretty - - // -*- rust -*- fn ho(f: fn(int) -> int ) -> int { let n: int = f(3); ret n; } @@ -9,13 +6,10 @@ fn direct(x: int) -> int { ret x + 1; } fn main() { let a: int = direct(3); // direct - //let int b = ho(direct); // indirect unbound - + let b: int = ho(direct); // indirect unbound let c: int = ho(bind direct(_)); // indirect bound - //assert (a == b); - //assert (b == c); - - + assert (a == b); + assert (b == c); } \ No newline at end of file