Mercurial > projects > dstress
annotate run/foreach_16.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | 0b6abb63f92d |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
4
diff
changeset
|
5 module dstress.run.foreach_16; |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
4
diff
changeset
|
6 |
4 | 7 int main(){ |
1560 | 8 string x = x"F0 9D 83 93"; // utf-8 for U+1D0D3 |
4 | 9 |
10 int count=0; | |
390 | 11 dchar tmp; |
1560 | 12 foreach(dchar value ; x){ |
4 | 13 tmp=value; |
14 count++; | |
15 } | |
16 assert(count==1); | |
17 assert(tmp==0x01D0D3); | |
18 | |
19 return 0; | |
20 } |