I just tried the following in vala, and the assertion fails.
int[] x = {1,2};
int[] y = {1,2};
assert( x == y );
I suppose Vala compares the memory locations of x and y instead of the content of the arrays. Is there an easy way to compare two arrays without having to loop though them in vala?