annotate run/escape_unicode32_01.d @ 1619:bebc7472a832

Fix #7.
author Christian Kamm <kamm incasoftware de>
date Sat, 07 Nov 2009 18:55:30 +0100
parents 36bedfa079e6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
374
f87ba6507260 added missing meta-data
thomask
parents: 26
diff changeset
1 // $HeadURL$
f87ba6507260 added missing meta-data
thomask
parents: 26
diff changeset
2 // $Date$
f87ba6507260 added missing meta-data
thomask
parents: 26
diff changeset
3 // $Author$
f87ba6507260 added missing meta-data
thomask
parents: 26
diff changeset
4
f87ba6507260 added missing meta-data
thomask
parents: 26
diff changeset
5 module dstress.run.escape_unicode32_01;
f87ba6507260 added missing meta-data
thomask
parents: 26
diff changeset
6
26
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
7 int main(){
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 374
diff changeset
8 wstring x="\U000002AF1";
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 374
diff changeset
9 assert(x.length==2);
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 374
diff changeset
10 assert(x[0]==0x2AF);
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 374
diff changeset
11 assert(x[1]=='1');
26
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
12 return 0;
17cbb8970edc added string escape tests
thomask
parents:
diff changeset
13 }