Mercurial > projects > dstress
annotate run/Wysiwyg_String_01.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 36bedfa079e6 |
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 } |