@@ -0,0 +1,2050 @@
+package jp.ac.utokyo.rcast.karkinos.readssummary;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0A%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.params.ParameterizedTest;%0Aimport org.junit.jupiter.params.provider.Arguments;%0Aimport org.junit.jupiter.params.provider.MethodSource;%0A%0Aimport java.util.stream.Stream;%0A%0Apublic class IntervalTest %7B%0A  private static boolean isSameInterval(final Interval a, final Interval b) %7B%0A    return a.getChr().equals(b.getChr())%0A      && a.getStart() == b.getStart()%0A      && a.getEnd() == b.getEnd()%0A      && a.getDepth() == b.getDepth()%0A      && a.getRefseqid().equals(b.getRefseqid())%0A      && a.getGeneSymbol().equals(b.getGeneSymbol());%0A  %7D%0A%0A  @Test%0A  void extendIntervalTest() %7B%0A    final Interval iv = new Interval(%22chr1%22, 2, 4, %22NR_037415%22, %22MIR3620%22);%0A    iv.depth = 0;%0A%0A    //      12345%0A    // iv    ===%0A    // pos  .%0A    //  =%3E   ===  doesn't extend%0A    assertFalse(iv.extendInterval(%22chr1%22, 1, 0));%0A%0A    //      12345%0A    // iv    ===%0A    // pos     .%0A    //  =%3E   ===  doesn't extend%0A    assertFalse(iv.extendInterval(%22chr1%22, 4, 0));%0A%0A    //      12345%0A    // iv    ===%0A    // pos      .%0A    //  =%3E   ====  extend%0A    assertTrue(iv.extendInterval(%22chr1%22, 5, 0));%0A    final Interval expected = new Interval(%22chr1%22, 2, 5, %22NR_037415%22, %22MIR3620%22);%0A    expected.depth = 0;%0A    assertTrue(isSameInterval(expected, iv));%0A  %7D%0A%0A  private static Stream%3CArguments%3E containArgs() %7B%0A    return Stream.of(%0A        Arguments.of(false, %22chr1%22, 1),%0A        Arguments.of(true, %22chr1%22, 2),%0A        Arguments.of(true, %22chr1%22, 4),%0A        Arguments.of(false, %22chr1%22, 5),%0A        Arguments.of(false, %22chr2%22, 2));%0A  %7D%0A%0A  @ParameterizedTest%0A  @MethodSource(%22containArgs%22)%0A  void containTest(final boolean expected, final String chr, final int pos) %7B%0A    final Interval iv = new Interval(%22chr1%22, 2, 4, %22NR_037415%22, %22MIR3620%22);%0A    assertEquals(expected, iv.contain(chr, pos));%0A  %7D%0A%7D%0A

Add test codes to test readssummary/Interval