Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2e7042b

Browse files
committed
add more ut case for 208
1 parent c5b210f commit 2e7042b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/0208_implement_trie_prefix_tree/impltrie_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ func TestImplTrie(t *testing.T) {
66
trie := Constructor()
77
trie.Insert("apple")
88

9-
for i, j := range map[string]bool{"apple": true, "app": false} {
9+
for i, j := range map[string]bool{"apple": true, "app": false, "hello": false} {
1010
if res := trie.Search(i); res != j {
1111
t.Errorf("expected %t, got %t", j, res)
1212
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /