File size: 656 Bytes
24e07f8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
public class Main {
//Program start
//Program end
@Test
public void test1() {
assertEquals(false, isGood(new ArrayList<>(Arrays.asList(2, 1, 3))));
}
@Test
public void test2() {
assertEquals(true, isGood(new ArrayList<>(Arrays.asList(1, 3, 3, 2))));
}
@Test
public void test3() {
assertEquals(true, isGood(new ArrayList<>(Arrays.asList(1, 1))));
}
@Test
public void test4() {
assertEquals(false, isGood(new ArrayList<>(Arrays.asList(3, 4, 4, 1, 2, 1))));
}
}
|