test: Un-xfail run-pass/tag-auto-disr-val-shape
This commit is contained in:
parent
19a9a475a6
commit
4168101b03
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user