robert-bor / aho-corasick

Java implementation of the Aho-Corasick algorithm for efficient string matching
Apache License 2.0
890 stars 348 forks source link

have u tried this test case #57

Closed LiuSai-Dream closed 7 years ago

LiuSai-Dream commented 7 years ago
@Test
    public void shefgTest() {
        Trie trie = new Trie(false);
        trie.addKeyword("shefg");
        trie.addKeyword("hefg");
        trie.addKeyword("efg");
        trie.addKeyword("fg");
        Collection<Emit> emits = trie.parseText("shefge");
        System.out.println(emits);
    }

when I run the test case above, it outputs nothing.