From 4168101b039d2e0dfea5f066ea13047ff9ed4ad9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 25 Jan 2012 12:44:13 -0800 Subject: [PATCH] test: Un-xfail run-pass/tag-auto-disr-val-shape --- src/test/run-pass/tag-auto-disr-val-shape.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/test/run-pass/tag-auto-disr-val-shape.rs b/src/test/run-pass/tag-auto-disr-val-shape.rs index 7f6faf96ed4..89b79706079 100644 --- a/src/test/run-pass/tag-auto-disr-val-shape.rs +++ b/src/test/run-pass/tag-auto-disr-val-shape.rs @@ -1,10 +1,9 @@ -// xfail-test - enum color { red, green, blue, black, white, } fn main() { - assert (uint::to_str(red as uint, 10) == #fmt["%?", red]); - assert (uint::to_str(green as uint, 10) == #fmt["%?", green]); - assert (uint::to_str(white as uint, 10) == #fmt["%?", white]); + // Ideally we would print the name of the variant, not the number + assert (uint::to_str(red as uint, 10u) == #fmt["%?", red]); + assert (uint::to_str(green as uint, 10u) == #fmt["%?", green]); + assert (uint::to_str(white as uint, 10u) == #fmt["%?", white]); }