Mercurial > projects > dstress
diff run/typeid_17.d @ 1086:7e8e5013a030
gdc-0.19 review
author | thomask |
---|---|
date | Tue, 18 Jul 2006 22:51:49 +0000 |
parents | 38ea1bb385b6 |
children |
line wrap: on
line diff
--- a/run/typeid_17.d Fri Jul 14 23:04:11 2006 +0000 +++ b/run/typeid_17.d Tue Jul 18 22:51:49 2006 +0000 @@ -7,16 +7,32 @@ int main(){ TypeInfo ti = typeid(bool[]); - assert(!(ti is null)); - assert(ti); - assert(ti.tsize==(bool[]).sizeof); - assert(ti.toString()=="bool[]"); + if(ti is null){ + assert(0); + } + if(!ti){ + assert(0); + } + if(ti.tsize != (bool[]).sizeof){ + assert(0); + } + if(ti.toString() != "bool[]"){ + assert(0); + } TypeInfo_Array ta = cast(TypeInfo_Array) ti; - assert(!(ta is null)); - assert(ta); - assert(ta.tsize==(bool[]).sizeof); - assert(ta.toString()=="bool[]"); + if(ta is null){ + assert(0); + } + if(!ta){ + assert(0); + } + if(ta.tsize != (bool[]).sizeof){ + assert(0); + } + if(ta.toString() != "bool[]"){ + assert(0); + } return 0; }