comparison tests/mini/marray1.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/marray1.d@a3b7c19c866c
children
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module tangotest.marray1;
2
3 void main()
4 {
5 int[][] arr;
6 int[] a = [1,2];
7 int[] b = [6,7,8,9];
8 arr ~= a;
9 arr ~= b;
10 assert(a.length == 2);
11 assert(b.length == 4);
12 assert(arr.length == 2);
13 assert(arr[0][0] == 1);
14 assert(arr[0][1] == 2);
15 assert(arr[1][0] == 6);
16 assert(arr[1][1] == 7);
17 assert(arr[1][2] == 8);
18 assert(arr[1][3] == 9);
19 }