Search in sources :

Example 1 with TailDoubleArray

use of org.trie4j.doublearray.TailDoubleArray in project trie4j by takawitter.

the class Issue_031 method test_TailDoubleArray.

@Test
public void test_TailDoubleArray() throws Throwable {
    Trie trie = new PatriciaTrie();
    insertLines(trie, FILE_NAME);
    Trie da = new TailDoubleArray(trie);
    Assert.assertFalse(trie.contains("you"));
    Assert.assertFalse(da.contains("you"));
}
Also used : MapTailDoubleArray(org.trie4j.doublearray.MapTailDoubleArray) TailDoubleArray(org.trie4j.doublearray.TailDoubleArray) PatriciaTrie(org.trie4j.patricia.PatriciaTrie) MapPatriciaTrie(org.trie4j.patricia.MapPatriciaTrie) MapTrie(org.trie4j.MapTrie) PatriciaTrie(org.trie4j.patricia.PatriciaTrie) Trie(org.trie4j.Trie) MapPatriciaTrie(org.trie4j.patricia.MapPatriciaTrie) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 MapTrie (org.trie4j.MapTrie)1 Trie (org.trie4j.Trie)1 MapTailDoubleArray (org.trie4j.doublearray.MapTailDoubleArray)1 TailDoubleArray (org.trie4j.doublearray.TailDoubleArray)1 MapPatriciaTrie (org.trie4j.patricia.MapPatriciaTrie)1 PatriciaTrie (org.trie4j.patricia.PatriciaTrie)1