From db4aaedcbdb409e17ea3de161e7b24a80ba0a58c Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 8 Jan 2015 11:47:04 +0100 Subject: Moved ptrie => trie. Removed old trie --- ptrie/iterator_test.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 ptrie/iterator_test.go (limited to 'ptrie/iterator_test.go') diff --git a/ptrie/iterator_test.go b/ptrie/iterator_test.go deleted file mode 100644 index acfc03d63..000000000 --- a/ptrie/iterator_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package ptrie - -import "testing" - -func TestIterator(t *testing.T) { - trie := NewEmpty() - vals := []struct{ k, v string }{ - {"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() { - v[string(it.Key)] = true - } - - for k, found := range v { - if !found { - t.Error("iterator didn't find", k) - } - } -} -- cgit v1.2.3