annotate run/escape_unicode32_02.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 char[] string="\U000002AF1";
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
3 assert(string.length==3);
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
4 assert(string[0]==0xCA);
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
5 assert(string[1]==0xAF);
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
6 assert(string[2]=='1');
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
7 return 0;
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
8 }