Skip to content

Commit 3f6d19b

Browse files
committed
---
yaml --- r: 13791 b: refs/heads/try c: 4168101 h: refs/heads/master i: 13789: 6fc5433 13787: 12b0a09 13783: 2e45ab6 13775: 575e160 13759: 4d20d7e v: v3
1 parent 716f99f commit 3f6d19b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 19a9a475a624ac8d0b73e126cc8b9670629429a0
5+
refs/heads/try: 4168101b039d2e0dfea5f066ea13047ff9ed4ad9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
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)