232425262728293031
public void testSpanMath() { Span span = new Span(1, 2); assertEquals(2, span.add(1).getBegin()); assertEquals(3, span.add(1).getEnd()); assertEquals(0, span.subtract(1).getBegin()); assertEquals(1, span.subtract(1).getEnd()); } }
2425262728293031