view run/Alternate_Wysiwyg_String_01.d @ 1559:ec5e144583ea

D1 -> D2 : 1/N
author thomask
date Sun, 19 Aug 2007 19:11:54 +0000
parents f87ba6507260
children 36bedfa079e6
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

module dstress.run.Alternate_Wysiwyg_String_01;

int main(){
	string string=`hello`;
	if(5 != string.length){ assert(0); }
	if('h' != string[0]){ assert(0); }
	if('e' != string[1]){ assert(0); }
	if('l' != string[2]){ assert(0); }
	if('l' != string[3]){ assert(0); }
	if('o' != string[4]){ assert(0); }
	return 0;
}