annotate run/InExpression_10.d @ 180:da000f026b76

1) added InExpression tests 2) added passed/failed explanations to the summary page
author thomask
date Tue, 07 Dec 2004 12:04:08 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
180
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
1 // $HeadURL$
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
2 // $Date$
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
3 // $Author$
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
4
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
5 module dstress.run.InExpression_10;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
6
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
7 class MyClass{
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
8 int i;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
9 char c;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
10 }
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
11
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
12 int main(){
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
13 MyClass value = new MyClass();
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
14 char[] key = "eins";
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
15 char[] copyKey;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
16 copyKey = key.dup;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
17 MyClass[char[]] array;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
18
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
19 array[key]=value;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
20 MyClass* ptr = copyKey in array;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
21
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
22 assert(value == *ptr);
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
23
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
24 return 0;
da000f026b76 1) added InExpression tests
thomask
parents:
diff changeset
25 }