Mercurial > projects > dstress
comparison run/escape_unicode32_02.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | f87ba6507260 |
children |
comparison
equal
deleted
inserted
replaced
1559:ec5e144583ea | 1560:36bedfa079e6 |
---|---|
3 // $Author$ | 3 // $Author$ |
4 | 4 |
5 module dstress.run.escape_unicode32_02; | 5 module dstress.run.escape_unicode32_02; |
6 | 6 |
7 int main(){ | 7 int main(){ |
8 char[] string="\U000002AF1"; | 8 string x="\U000002AF1"; |
9 assert(string.length==3); | 9 assert(x.length==3); |
10 assert(string[0]==0xCA); | 10 assert(x[0]==0xCA); |
11 assert(string[1]==0xAF); | 11 assert(x[1]==0xAF); |
12 assert(string[2]=='1'); | 12 assert(x[2]=='1'); |
13 return 0; | 13 return 0; |
14 } | 14 } |