Files
LeetCode-Go/leetcode/0676.Implement-Magic-Dictionary/676. Implement Magic Dictionary_test.go
2020-08-07 17:06:53 +08:00

20 lines
413 B
Go

package leetcode
import (
"fmt"
"testing"
)
func Test_Problem676(t *testing.T) {
dict := []string{"hello", "leetcode"}
obj := Constructor676()
obj.BuildDict(dict)
fmt.Printf("obj = %v\n", obj)
fmt.Println(obj.Search("hello"))
fmt.Println(obj.Search("apple"))
fmt.Println(obj.Search("leetcode"))
fmt.Println(obj.Search("leetcoded"))
fmt.Println(obj.Search("hhllo"))
fmt.Println(obj.Search("hell"))
}