()
| 63 | |
| 64 | |
| 65 | def test(): |
| 66 | words = ['banana', 'bananas', 'bandana', 'band', 'apple', 'all', 'beast'] |
| 67 | root = TrieNode() |
| 68 | root.insert_many(words) |
| 69 | # print_words(root, '') |
| 70 | assert root.find('banana') |
| 71 | assert not root.find('bandanas') |
| 72 | assert not root.find('apps') |
| 73 | assert root.find('apple') |
| 74 | |
| 75 | test() |
no test coverage detected