Mercurial > projects > dstress
annotate run/foreach_16.d @ 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
author | thomask |
---|---|
date | Sat, 23 Oct 2004 22:47:47 +0000 |
parents | 1ed6616fe905 |
children | f87ba6507260 |
rev | line source |
---|---|
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
4
diff
changeset
|
1 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
|
2 |
4 | 3 int main(){ |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
4
diff
changeset
|
4 char[] string = x"F0 9D 83 93"; // utf-8 for U+1D0D3 |
4 | 5 |
6 int count=0; | |
7 wchar tmp; | |
8 foreach(wchar value ; string){ | |
9 tmp=value; | |
10 count++; | |
11 } | |
12 assert(count==1); | |
13 assert(tmp==0x01D0D3); | |
14 | |
15 return 0; | |
16 } |