annotate run/escape_unicode16_01.d @ 26:17cbb8970edc

added string escape tests
author thomask
date Sat, 09 Oct 2004 12:01:24 +0000
parents
children f87ba6507260
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
1 int main(){
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
2 wchar[] string="\u02AF1";
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
3 assert(string.length==2);
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
4 assert(string[0]==0x2AF);
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
5 assert(string[1]=='1');
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
6 return 0;
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
7 }