annotate run/u/unicode_08_B.d @ 542:c4c408b85f15

botched wysiwyg-stringliterals Hiroshi Sakurai <Hiroshi_member@pathlink.com> 2005-05-17 news:d6bm67$cfr$1@digitaldaemon.com http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F13
author thomask
date Tue, 17 May 2005 14:44:52 +0000
parents
children 52c9e86b6486
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
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
8 // @url@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F13
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
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
18 char[] string = r"ワロスw";
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
19
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
20 assert(string.length==master.length);
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++){
c4c408b85f15 botched wysiwyg-stringliterals
thomask
parents:
diff changeset
23 assert(string[i]==master[i]);
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