Mercurial > projects > dstress
diff 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 |
line wrap: on
line diff
--- a/run/o/opCat_16_C.d Sun Aug 19 19:11:54 2007 +0000 +++ b/run/o/opCat_16_C.d Sun Aug 19 19:15:01 2007 +0000 @@ -9,12 +9,18 @@ module dstress.run.o.opCat_16_C; int main(){ - char[][] strings; + string[] strings; strings.length = 1; strings[0] = "Foo"; - char[] test = "Bar"; - assert((strings ~ test).length==2); - assert((strings ~ test)[0] == "Foo"); - assert((strings ~ test)[1] == "Bar"); + string test = "Bar"; + if(2 != (strings ~ test).length){ + assert(0); + } + if("Foo" != (strings ~ test)[0]){ + assert(0); + } + if("Bar" != (strings ~ test)[1]){ + assert(0); + } return 0; }