svoid test_LCSingleSearcher_v1() { Random random = repeatableRandomizer(); S text = randomABC(100, random); print(+text); repeat 10 { S query = randomABC(5, random); test_LCSingleSearcher_v1(text, query); } } svoid test_LCSingleSearcher_v1(S text, S query) { new LCSingleSearcher_v1 searcher; searcher.text = text; assertEqualsVerbose(query, indicesOf(text, query), searcher.search(query)); }