Skip to content

Commit 31bb6a6

Browse files
committed
Fixes #1499: a test that shape code can walk explicit disr values
1 parent 6c05214 commit 31bb6a6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
tag color {
2+
red = 0xff0000;
3+
green = 0x00ff00;
4+
blue = 0x0000ff;
5+
black = 0x000000;
6+
white = 0xFFFFFF;
7+
}
8+
9+
fn main() {
10+
assert uint::to_str(red as uint, 10u) == #fmt["%?", red];
11+
assert uint::to_str(green as uint, 10u) == #fmt["%?", green];
12+
assert uint::to_str(white as uint, 10u) == #fmt["%?", white];
13+
}
14+

0 commit comments

Comments
 (0)