comparison 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
comparison
equal deleted inserted replaced
1559:ec5e144583ea 1560:36bedfa079e6
3 // $Author$ 3 // $Author$
4 4
5 module dstress.run.Wysiwyg_String_01; 5 module dstress.run.Wysiwyg_String_01;
6 6
7 int main(){ 7 int main(){
8 char[] string=r"hello"; 8 string x=r"hello";
9 assert(string.length==5); 9 assert(x.length==5);
10 assert(string[0]=='h'); 10 assert(x[0]=='h');
11 assert(string[1]=='e'); 11 assert(x[1]=='e');
12 assert(string[2]=='l'); 12 assert(x[2]=='l');
13 assert(string[3]=='l'); 13 assert(x[3]=='l');
14 assert(string[4]=='o'); 14 assert(x[4]=='o');
15 return 0; 15 return 0;
16 } 16 }