void () { assertEquals(13, numTraverser().onRange(o -> true).traverse().size()); JBTreeTraverser<TextRange> ranges = rangeTraverser(); assertEquals(5, ranges.withRoot(TextRange.from(0, 8)).traverse().size()); assertEquals(Arrays.asList("(0,64)", "(16,32)", "(28,32)", "(29,30)", "(30,31)", "(31,32)", "(32,48)", "(32,36)", "(32,33)", "(33,34)"), ranges.withRoot(TextRange.from(0, 64)) .onRange(r -> r.intersects(30, 33)) .preOrderDfsTraversal().map(Object::toString).toList()); }