tests: Add "gtktemplate" test to increase coverage
[vala-gnome.git] / tests / basic-types / bug604371.vala
blobd29b21a2d67bc2c0b0f10eb925a1b10308118275
1 const int[,] FOO = { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 6, 7, 8 }, { 9 }};
2 const string[,] BAR = { { "a", "b" }, { "c", "d" }, { "e", "f" }, { "g", "h", "i" }, { "j" }};
4 void main () {
5 assert (FOO.length[0] == 5);
6 assert (FOO.length[1] == 3);
7 assert (FOO[0,1] == 2);
8 assert (FOO[3,2] == 8);
10 int[,] foo = FOO;
11 assert (foo.length[0] == 5);
12 assert (foo.length[1] == 3);
13 assert (foo[0,1] == 2);
14 assert (foo[3,2] == 8);
16 assert (BAR.length[0] == 5);
17 assert (BAR.length[1] == 3);
18 assert (BAR[0,1] == "b");
19 assert (BAR[3,2] == "i");
21 string[,] bar = BAR;
22 assert (bar.length[0] == 5);
23 assert (bar.length[1] == 3);
24 assert (bar[0,1] == "b");
25 assert (bar[3,2] == "i");