Skip to content

Commit 4168101

Browse files
committed
test: Un-xfail run-pass/tag-auto-disr-val-shape
1 parent 19a9a47 commit 4168101

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// xfail-test
2-
31
enum color { red, green, blue, black, white, }
42

53
fn main() {
6-
assert (uint::to_str(red as uint, 10) == #fmt["%?", red]);
7-
assert (uint::to_str(green as uint, 10) == #fmt["%?", green]);
8-
assert (uint::to_str(white as uint, 10) == #fmt["%?", white]);
4+
// Ideally we would print the name of the variant, not the number
5+
assert (uint::to_str(red as uint, 10u) == #fmt["%?", red]);
6+
assert (uint::to_str(green as uint, 10u) == #fmt["%?", green]);
7+
assert (uint::to_str(white as uint, 10u) == #fmt["%?", white]);
98
}
109

0 commit comments

Comments
 (0)