package com.matao;

/**
 * Created by matao on 2019-01-06.
 */
public class Q21_ReorderArrayTest {
}

@@ -17,85 +17,986 @@
 o;%0A%0A
-/**%0A * Created by matao on 2019-01-06.%0A */%0Apublic class Q21_ReorderArrayTest %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 2019-01-06.%0A */%0Apublic class Q21_ReorderArrayTest %7B%0A%0A    private Q21_ReorderArray reorderArray;%0A%0A    @BeforeEach%0A    void setUp() %7B%0A        reorderArray = new Q21_ReorderArray();%0A    %7D%0A%0A    @Test%0A    void testNull() %7B%0A        Assertions.assertNull(reorderArray.reorder(null));%0A    %7D%0A%0A    @Test%0A    void testEmptyArray() %7B%0A        int%5B%5D data = %7B%7D;%0A        int%5B%5D result = %7B%7D;%0A        Assertions.assertArrayEquals(data, reorderArray.reorder(data));%0A    %7D%0A%0A    @Test%0A    void testSingleElementArray() %7B%0A        int%5B%5D data = %7B1%7D;%0A        int%5B%5D result = %7B1%7D;%0A        Assertions.assertArrayEquals(data, reorderArray.reorder(data));%0A    %7D%0A%0A    @Test%0A    void testArray() %7B%0A        int%5B%5D data = %7B1, 2, 3, 4, 5, 7, 7%7D;%0A        int%5B%5D result = %7B1, 7, 3, 7, 5, 4, 2%7D;%0A        Assertions.assertArrayEquals(result, reorderArray.reorder(data));%0A    %7D
 %0A%7D%0A

add test cases for ReorderArray