comparison run/t/throw_07_B.d @ 1613:70a23cb6a616

Fix incorrect run.t.throw_07_A/B tests
author Christian Kamm <kamm incasoftware de>
date Sun, 10 May 2009 12:10:34 +0200
parents b8c0195059d9
children
comparison
equal deleted inserted replaced
1612:1f76d5b2f458 1613:70a23cb6a616
61 int main(){ 61 int main(){
62 62
63 Tester t = new Tester(&foo); 63 Tester t = new Tester(&foo);
64 64
65 try{ 65 try{
66 t.test();
67 assert(0);
68 }catch(XException e){
66 if(status++ != 5){ 69 if(status++ != 5){
67 assert(0); 70 assert(0);
68 } 71 }
69 t.test(); 72 }finally{
70 assert(0);
71 }catch(XException e){
72 if(status++ != 6){ 73 if(status++ != 6){
73 assert(0);
74 }
75 }finally{
76 if(status++ != 7){
77 assert(0); 74 assert(0);
78 } 75 }
79 } 76 }
80 77
81 if(status != 8){ 78 if(status != 7){
82 assert(0); 79 assert(0);
83 } 80 }
84 return 0; 81 return 0;
85 } 82 }