Skip to content

Commit 55d8873

Browse files
committed
---
yaml --- r: 7805 b: refs/heads/snap-stage3 c: 4168101 h: refs/heads/master i: 7803: b73157a v: v3
1 parent f24c881 commit 55d8873

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
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 19a9a475a624ac8d0b73e126cc8b9670629429a0
4+
refs/heads/snap-stage3: 4168101b039d2e0dfea5f066ea13047ff9ed4ad9
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
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)