diff options
Diffstat (limited to 'ptrie/iterator_test.go')
-rw-r--r-- | ptrie/iterator_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ptrie/iterator_test.go b/ptrie/iterator_test.go index 8921bb670..acfc03d63 100644 --- a/ptrie/iterator_test.go +++ b/ptrie/iterator_test.go @@ -8,12 +8,17 @@ func TestIterator(t *testing.T) { {"do", "verb"}, {"ether", "wookiedoo"}, {"horse", "stallion"}, + {"shaman", "horse"}, + {"doge", "coin"}, + {"dog", "puppy"}, + {"somethingveryoddindeedthis is", "myothernodedata"}, } v := make(map[string]bool) for _, val := range vals { v[val.k] = false trie.UpdateString(val.k, val.v) } + trie.Commit() it := trie.Iterator() for it.Next() { |