package com.matao;

/**
 * Created by matao on 2018/8/24.
 */
public class Q03_DuplicationInArrayTest {
}

@@ -17,90 +17,1565 @@
 o;%0A%0A
-/**%0A * Created by matao on 2018/8/24.%0A */%0Apublic class Q03_DuplicationInArrayTest %7B
+import org.junit.jupiter.api.Assertions;%0Aimport org.junit.jupiter.api.BeforeEach;%0Aimport org.junit.jupiter.api.Test;%0A%0A/**%0A * Created by matao on 2018/8/24.%0A */%0Apublic class Q03_DuplicationInArrayTest %7B%0A    private Q03_DuplicationInArray duplicationInArray;%0A    private int%5B%5D data1;%0A    private int%5B%5D data2;%0A%0A    @BeforeEach%0A    void setUp() %7B%0A        duplicationInArray = new Q03_DuplicationInArray();%0A        data1 = new int%5B%5D%7B2, 3, 1, 0, 2, 5, 3%7D;%0A        data2 = new int%5B%5D%7B2, 3, 1, 0, 4, 5, 5%7D;%0A    %7D%0A%0A    @Test%0A    void testFindDuplication1() %7B%0A        Assertions.assertEquals(2, duplicationInArray.findDuplication1(data1));%0A        Assertions.assertEquals(5, duplicationInArray.findDuplication1(data2));%0A    %7D%0A%0A    @Test%0A    void testFindDuplication2() %7B%0A        Assertions.assertEquals(2, duplicationInArray.findDuplication2(data1));%0A        Assertions.assertEquals(5, duplicationInArray.findDuplication2(data2));%0A    %7D%0A%0A    @Test%0A    void testFindDuplication3() %7B%0A        Assertions.assertEquals(2, duplicationInArray.findDuplication3(data1));%0A        Assertions.assertEquals(5, duplicationInArray.findDuplication3(data2));%0A    %7D%0A%0A    @Test%0A    void testFindDuplication4() %7B%0A        Assertions.assertEquals(2, duplicationInArray.findDuplication4(data1));%0A        Assertions.assertEquals(5, duplicationInArray.findDuplication4(data2));%0A    %7D%0A%0A    @Test%0A    void testFindDuplication5() %7B%0A        Assertions.assertEquals(2, duplicationInArray.findDuplication5(data1));%0A        Assertions.assertEquals(5, duplicationInArray.findDuplication5(data2));%0A    %7D
 %0A%7D%0A

add test case for DuplicationInArray