/**
 * 
 */
package mathsquared.resultswizard2;

import static org.junit.Assert.*;

import org.junit.Test;

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

    /**
     * Test method for {@link mathsquared.resultswizard2.Sweepstakes#assignPoints(int[], int[], mathsquared.resultswizard2.TiePlaceAssignment, mathsquared.resultswizard2.SweepstakesAssignment)}.
     */
    @Test
    public void testAssignPoints () {
        fail("Not yet implemented");
    }

    /**
     * Test method for {@link mathsquared.resultswizard2.Sweepstakes#linkSweepstakes(java.lang.String[][], mathsquared.resultswizard2.Fraction[])}.
     */
    @Test
    public void testLinkSweepstakes () {
        fail("Not yet implemented");
    }

}

@@ -73,17 +73,114 @@
 .Assert.
-*
+assertEquals;%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map
 ;%0A%0Aimpor
@@ -227,16 +227,17 @@
 uared%0A *
+ 
 %0A */%0Apub
@@ -795,34 +795,1412 @@
     
-fail(%22Not yet implemented%22
+String%5B%5D%5B%5D simple = new String%5B%5D%5B%5D%7B%7B%22a%22, %22b%22%7D, %7B%22c%22%7D, %7B%22d%22, %22e%22, %22f%22%7D%7D;%0A        String%5B%5D%5B%5D repeat = new String%5B%5D%5B%5D%7B%7B%22a%22, %22b%22, %22c%22%7D, %7B%22b%22, %22d%22%7D%7D;%0A        String%5B%5D%5B%5D selfRepeat = new String%5B%5D%5B%5D%7B%7B%22a%22, %22a%22%7D, %7B%22b%22%7D%7D;%0A%0A        Fraction%5B%5D toLink = new Fraction%5B%5D%7Bnew Fraction(4), new Fraction(2), new Fraction(1)%7D;%0A%0A        Map%3CString, Fraction%3E simpleRes = new HashMap%3CString, Fraction%3E();%0A        simpleRes.put(%22a%22, new Fraction(4));%0A        simpleRes.put(%22b%22, new Fraction(4));%0A        simpleRes.put(%22c%22, new Fraction(2));%0A        simpleRes.put(%22d%22, new Fraction(1));%0A        simpleRes.put(%22e%22, new Fraction(1));%0A        simpleRes.put(%22f%22, new Fraction(1));%0A%0A        Map%3CString, Fraction%3E repeatRes = new HashMap%3CString, Fraction%3E();%0A        repeatRes.put(%22a%22, new Fraction(4));%0A        repeatRes.put(%22b%22, new Fraction(6));%0A        repeatRes.put(%22c%22, new Fraction(4));%0A        repeatRes.put(%22d%22, new Fraction(2));%0A%0A        Map%3CString, Fraction%3E selfRepeatRes = new HashMap%3CString, Fraction%3E();%0A        selfRepeatRes.put(%22a%22, new Fraction(8));%0A        selfRepeatRes.put(%22b%22, new Fraction(2));%0A%0A        assertEquals(%22Simple, no dupes%22, Sweepstakes.linkSweepstakes(simple, toLink), simpleRes);%0A        assertEquals(%22Repeated keys%22, Sweepstakes.linkSweepstakes(repeat, toLink), repeatRes);%0A        assertEquals(%22Repeated keys in the same sub-array%22, Sweepstakes.linkSweepstakes(selfRepeat, toLink), selfRepeatRes
 );%0A 

Add Sweepstakes test: linkSweepstakes