Mercurial > projects > dstress
annotate run/foreach_06.d @ 374:f87ba6507260
added missing meta-data
author | thomask |
---|---|
date | Thu, 31 Mar 2005 09:01:33 +0000 |
parents | 3414705c41ac |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
374 | 5 module dstress.run.foreach_06; |
0 | 6 |
7 int main(){ | |
8 char[] array="\xE2\x89\xA0"; | |
9 int count=0; | |
10 assert(count==0); | |
11 foreach(int index, dchar obj; array){ | |
12 assert(index==0); | |
13 assert(obj==0x2260); | |
14 count++; | |
15 } | |
16 assert(count==1); | |
17 return 0; | |
1 | 18 } |