package com.matao;

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

@@ -17,90 +17,735 @@
 o;%0A%0A
-/**%0A * Created by matao on 2019-01-06.%0A */%0Apublic class Q31_StackPushPopOrderTest %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 Q31_StackPushPopOrderTest %7B%0A%0A    private Q31_StackPushPopOrder stackPushPopOrder;%0A%0A    @BeforeEach%0A    void setUp() %7B%0A        stackPushPopOrder = new Q31_StackPushPopOrder();%0A    %7D%0A%0A    @Test%0A    void testTrue() %7B%0A        int%5B%5D push = %7B1, 2, 3, 4, 5%7D;%0A        int%5B%5D pop = %7B4, 5, 3, 2, 1%7D;%0A        Assertions.assertTrue(stackPushPopOrder.isPopOrder(push, pop));%0A    %7D%0A%0A    @Test%0A    void testFalse() %7B%0A        int%5B%5D push = %7B1, 2, 3, 4, 5%7D;%0A        int%5B%5D pop = %7B4, 3, 5, 1, 2%7D;%0A        Assertions.assertFalse(stackPushPopOrder.isPopOrder(push, pop));%0A    %7D
 %0A%7D%0A

add test cases for StackPushPopOrder