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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
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
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
5
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
6 int count=0;
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
7 wchar tmp;
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
8 foreach(wchar value ; string){
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
9 tmp=value;
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
10 count++;
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
11 }
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
12 assert(count==1);
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
13 assert(tmp==0x01D0D3);
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
14
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
15 return 0;
1ed6616fe905 extended array tests
thomask
parents:
diff changeset
16 }