| 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 | |
| public void test1() { | |
| assertEquals(true, checkDistances("abaccb", new ArrayList<>(Arrays.asList(1,3,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)))); | |
| } | |
| public void test2() { | |
| assertEquals(false, checkDistances("aa", new ArrayList<>(Arrays.asList(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)))); | |
| } | |
| } | |