Mercurial > projects > dstress
comparison run/u/unicode_08_C.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | 52c9e86b6486 |
children |
comparison
equal
deleted
inserted
replaced
1559:ec5e144583ea | 1560:36bedfa079e6 |
---|---|
13 static ubyte[] master = [ | 13 static ubyte[] master = [ |
14 0xE3u, 0x83u, 0xAFu, 0xE3u, 0x83u, 0xADu, 0xE3u, 0x82u, | 14 0xE3u, 0x83u, 0xAFu, 0xE3u, 0x83u, 0xADu, 0xE3u, 0x82u, |
15 0xB9u, 0xEFu, 0xBDu, 0x97u | 15 0xB9u, 0xEFu, 0xBDu, 0x97u |
16 ]; | 16 ]; |
17 | 17 |
18 char[] string = `ワロスw`; | 18 string x = `ワロスw`; |
19 | 19 |
20 assert(string.length==master.length); | 20 assert(x.length==master.length); |
21 | 21 |
22 for(int i=0; i<master.length; i++){ | 22 for(int i=0; i<master.length; i++){ |
23 assert(string[i]==master[i]); | 23 assert(x[i]==master[i]); |
24 } | 24 } |
25 | 25 |
26 return 0; | 26 return 0; |
27 } | 27 } |
28 | 28 |