Mercurial > projects > dstress
annotate run/Wysiwyg_String_01.d @ 1560:36bedfa079e6
D1 -> D2 : 2/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:15:01 +0000 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.Wysiwyg_String_01; | |
6 | |
25 | 7 int main(){ |
1560 | 8 string x=r"hello"; |
9 assert(x.length==5); | |
10 assert(x[0]=='h'); | |
11 assert(x[1]=='e'); | |
12 assert(x[2]=='l'); | |
13 assert(x[3]=='l'); | |
14 assert(x[4]=='o'); | |
25 | 15 return 0; |
16 } |