Mercurial > projects > ldc
comparison tests/mini/marray2.d @ 341:1bb99290e03a trunk
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:51:19 +0200 |
parents | tangotests/marray2.d@a3b7c19c866c |
children |
comparison
equal
deleted
inserted
replaced
340:351c0077d0b3 | 341:1bb99290e03a |
---|---|
1 module tangotests.marray2; | |
2 | |
3 void main() | |
4 { | |
5 int[][] ma = new int[][](2,4); | |
6 assert(ma.length == 2); | |
7 assert(ma[0].length == 4); | |
8 assert(ma[1].length == 4); | |
9 ma[0][3] = 32; | |
10 ma[1][2] = 123; | |
11 ma[0][0] = 55; | |
12 assert(ma[0][3] == 32); | |
13 assert(ma[1][2] == 123); | |
14 assert(ma[0][0] == 55); | |
15 } |