annotate run/o/opCat_16_C.d @ 1560:36bedfa079e6

D1 -> D2 : 2/N
author thomask
date Sun, 19 Aug 2007 19:15:01 +0000
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
672
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
1 // $HeadURL$
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
2 // $Date$
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
3 // $Author$
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
4
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
5 // @author@ AJG <AJG@nospam.com>
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
6 // @date@ 2005-09-18
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1091
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5027
672
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
8
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
9 module dstress.run.o.opCat_16_C;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
10
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
11 int main(){
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
12 string[] strings;
672
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
13 strings.length = 1;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
14 strings[0] = "Foo";
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
15 string test = "Bar";
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
16 if(2 != (strings ~ test).length){
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
17 assert(0);
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
18 }
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
19 if("Foo" != (strings ~ test)[0]){
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
20 assert(0);
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
21 }
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
22 if("Bar" != (strings ~ test)[1]){
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
23 assert(0);
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
24 }
672
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
25 return 0;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
26 }