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]); }