aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/utf8.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-07-26 15:20:13 -0700
committerPatrick Walton <[email protected]>2010-07-26 15:22:21 -0700
commit4b97b4e79db70ca4ed6b9026c87858e97e92cc67 (patch)
tree91e35aeb9f5d0f179d2af7e21894bd555a515f0a /src/test/run-pass/utf8.rs
parentNote the typestate dataflow timing. The culprit is revealed. (diff)
downloadrust-4b97b4e79db70ca4ed6b9026c87858e97e92cc67.tar.xz
rust-4b97b4e79db70ca4ed6b9026c87858e97e92cc67.zip
Move the test suite to the "as" form for casts. XFAIL a few tests for LLVM.
Diffstat (limited to 'src/test/run-pass/utf8.rs')
-rw-r--r--src/test/run-pass/utf8.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/run-pass/utf8.rs b/src/test/run-pass/utf8.rs
index fd70423a..5fd4dcfe 100644
--- a/src/test/run-pass/utf8.rs
+++ b/src/test/run-pass/utf8.rs
@@ -5,14 +5,14 @@ fn main() {
let char y_diaeresis = 'ÿ'; // 0xff
let char pi = 'Π'; // 0x3a0
- check (int(yen) == 0xa5);
- check (int(c_cedilla) == 0xe7);
- check (int(thorn) == 0xfe);
- check (int(y_diaeresis) == 0xff);
- check (int(pi) == 0x3a0);
+ check ((yen as int) == 0xa5);
+ check ((c_cedilla as int) == 0xe7);
+ check ((thorn as int) == 0xfe);
+ check ((y_diaeresis as int) == 0xff);
+ check ((pi as int) == 0x3a0);
- check (int(pi) == int('\u03a0'));
- check (int('\x0a') == int('\n'));
+ check ((pi as int) == ('\u03a0' as int));
+ check (('\x0a' as int) == ('\n' as int));
let str bhutan = "འབྲུག་ཡུལ།";
let str japan = "日本";
@@ -27,7 +27,7 @@ fn main() {
let str austria_e = "\u00d6sterreich";
let char oo = 'Ö';
- check (int(oo) == 0xd6);
+ check ((oo as int) == 0xd6);
fn check_str_eq(str a, str b) {
let int i = 0;
@@ -45,4 +45,4 @@ fn main() {
check_str_eq(japan, japan_e);
check_str_eq(uzbekistan, uzbekistan_e);
check_str_eq(austria, austria_e);
-} \ No newline at end of file
+}