def test_key_does_not_exist(self): trie = Trie() assert not trie.has('foo')
def test_key_exists(self): trie = Trie() trie.add('foo', 1) assert trie.has('foo')
def test_key_does_not_exist(self): trie = Trie() assert not trie.has('foo')
def test_key_exists(self): trie = Trie() trie.add('foo', 1) assert trie.has('foo')