/**
 * 
 */
package mathsquared.resultswizard2;

import static org.junit.Assert.assertArrayEquals;

import org.junit.Test;

/**
 * @author MathSquared
 * 
 */
public class ArrayUtilsTest {

    /**
     * Test method for {@link mathsquared.resultswizard2.ArrayUtils#deepCopyOf(T[][])}.
     */
    @Test
    public void testDeepCopyOf () {
        // Initialize some arrays

        String[][][] evil = new String[][][] { { {"a", "b"}, {"c"}}, {{"e", "f", "g"}}, { {"h", "i"}, {"j"}, {"k", "l", "m"}}};
        String[][][] result = ArrayUtils.deepCopyOf(evil);
        assertArrayEquals("3-D irregular String array", evil, result);

        Integer[][] easier = new Integer[][] { {1, 2}, {3}, {4, 5, 6}};
        Integer[][] easierResult = ArrayUtils.deepCopyOf(easier);
        assertArrayEquals("2-D irregular Integer array", easier, easierResult);
    }

}

@@ -91,16 +91,103 @@
 yEquals;
+%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;
 %0A%0Aimport
@@ -939,10 +939,743 @@
 %0A    %7D%0A%0A
+    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.ArrayUtils#checkTies(String%5B%5D%5B%5D)%7D.%0A     */%0A    @Test%0A    public void testCheckTies () %7B%0A        String%5B%5D%5B%5D res = new String%5B%5D%5B%5D %7B %7B%22First%22%7D, %7B%22Second A%22, %22Second B%22%7D, null, %7B%22Fourth A%22, %22Fourth B%22, %22Fourth C%22%7D, null, null, %7B%22Seventh A%22, %22Seventh B%22%7D%7D;%0A        assertTrue(%22Valid with several ties%22, ArrayUtils.checkTies(res));%0A%0A        String%5B%5D%5B%5D bad = new String%5B%5D%5B%5D %7B %7B%22First A%22, %22First B%22%7D, %7B%22Second%22%7D%7D;%0A        assertFalse(%22Invalid--missing skip%22, ArrayUtils.checkTies(bad));%0A%0A        String%5B%5D%5B%5D nul = new String%5B%5D%5B%5D %7B %7B%22First A%22, %22First B%22%7D, null, null, %7B%22Fourth A%22, %22Fourth B%22%7D%7D;%0A        assertFalse(%22Invalid--extraneous null%22, ArrayUtils.checkTies(nul));%0A    %7D%0A%0A
 %7D%0A

Add testCheckTies