annotate run/u/unicode_08_B.d @ 1560:36bedfa079e6

D1 -> D2 : 2/N
author thomask
date Sun, 19 Aug 2007 19:15:01 +0000
parents 52c9e86b6486
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
542
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
1 // $HeadURL$
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
2 // $Date$
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
3 // $Author$
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
4
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
5 // @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com>
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
6 // @date@ 2005-05-17
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
7 // @uri@ news:d6bm67$cfr$1@digitaldaemon.com
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 542
diff changeset
8 // @uri@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F13
542
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
9
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
10 module dstress.run.u.unicode_08_B;
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
11
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
12 int main(){
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
13 static ubyte[] master = [
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
14 0xE3u, 0x83u, 0xAFu, 0xE3u, 0x83u, 0xADu, 0xE3u, 0x82u,
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
15 0xB9u, 0xEFu, 0xBDu, 0x97u
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
16 ];
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
17
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1383
diff changeset
18 string x = r"ワロスw";
542
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
19
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1383
diff changeset
20 assert(x.length==master.length);
542
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
21
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
22 for(int i=0; i<master.length; i++){
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1383
diff changeset
23 assert(x[i]==master[i]);
542
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
24 }
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
25
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
26 return 0;
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
27 }
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
28