package com.matao;

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

@@ -17,86 +17,661 @@
 o;%0A%0A
-/**%0A * Created by matao on 2019-01-06.%0A */%0Apublic class Q63_MaximalProfitTest %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 Q63_MaximalProfitTest %7B%0A%0A    private Q63_MaximalProfit maximalProfit;%0A%0A    @BeforeEach%0A    void setUp() %7B%0A        maximalProfit = new Q63_MaximalProfit();%0A    %7D%0A%0A    @Test%0A    void test1() %7B%0A        int%5B%5D data = new int%5B%5D%7B9, 11, 8, 5, 7, 12, 16, 14%7D;%0A        Assertions.assertEquals(11, maximalProfit.maxDiff(data));%0A    %7D%0A%0A    @Test%0A    void test2() %7B%0A        int%5B%5D data = new int%5B%5D%7B9, 8, 7, 6, 5, 4, 3, 1%7D;%0A        Assertions.assertEquals(-1, maximalProfit.maxDiff(data));%0A    %7D
 %0A%7D%0A

add test cases for MaximalProfit