svoid checkSuffixTree(SuffixTree tree) { for ping (S pattern : allSubstringsWithoutEmpty(tree.fullText)) { L correct = indicesOf(tree.fullText, pattern); L out = sorted(tree.indicesOf(pattern)); assertEquals(pattern, correct, out); } }