(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestTrieInsert(t *testing.T) { |
| 8 | n := NewNode() |
| 9 | |
| 10 | insertWords := []string{ |
| 11 | "nikola", |
| 12 | "tesla", |
| 13 | } |
| 14 | |
| 15 | checkWords := map[string]bool{ |
| 16 | "thomas": false, |
| 17 | "edison": false, |
| 18 | "nikola": true, |
| 19 | } |
| 20 | |
| 21 | n.Insert(insertWords...) |
| 22 | n.verify(t, checkWords) |
| 23 | n.verifySizeCapa(t, 2, 12) |
| 24 | |
| 25 | } |
| 26 | |
| 27 | func TestTrieInsert_substrings(t *testing.T) { |
| 28 | n := NewNode() |
nothing calls this directly
no test coverage detected