Alignments { static boolean isGapSymbol(final Symbol symbol) { return AlphabetManager.getGapSymbol().equals(symbol) || DNATools.getDNA().getGapSymbol().equals(symbol); } private  Alignments(); static long length(final Range<Long> range); static List<Long> lengths(final Iterable<Range<Long>> ranges); static long length(final Iterable<Range<Long>> ranges); static long maximumLength(final Iterable<Range<Long>> ranges); static int count(final Iterable<Range<Long>> ranges); static List<Long> starts(final Iterable<Range<Long>> ranges); static List<Long> ends(final Iterable<Range<Long>> ranges); static List<Range<Long>> gaps(final GappedSymbolList gappedSymbols); static List<Range<Long>> matches(final AlignmentPair alignmentPair); static List<Range<Long>> mismatches(final AlignmentPair alignmentPair);  }
@Test public void testIsGapSymbolNull() { assertFalse(isGapSymbol(null)); }
@Test public void testIsGapSymbol() { assertFalse(isGapSymbol(DNATools.a())); assertFalse(isGapSymbol(DNATools.c())); assertFalse(isGapSymbol(DNATools.t())); assertFalse(isGapSymbol(DNATools.g())); assertFalse(isGapSymbol(DNATools.n())); assertTrue(isGapSymbol(AlphabetManager.getGapSymbol())); assertTrue(isGapSymbol(DNATools.getDNA().getGapSymbol())); }