Files
LeetCode-Go/leetcode/1189.Maximum-Number-of-Balloons/1189. Maximum Number of Balloons_test.go
2020-08-27 00:58:22 +08:00

53 lines
746 B
Go

package leetcode
import (
"fmt"
"testing"
)
type question1189 struct {
para1189
ans1189
}
// para 是参数
// one 代表第一个参数
type para1189 struct {
text string
}
// ans 是答案
// one 代表第一个答案
type ans1189 struct {
one int
}
func Test_Problem1189(t *testing.T) {
qs := []question1189{
{
para1189{"nlaebolko"},
ans1189{1},
},
{
para1189{"loonbalxballpoon"},
ans1189{2},
},
{
para1189{"leetcode"},
ans1189{0},
},
}
fmt.Printf("------------------------Leetcode Problem 1189------------------------\n")
for _, q := range qs {
_, p := q.ans1189, q.para1189
fmt.Printf("【input】:%v 【output】:%v\n", p, maxNumberOfBalloons(p.text))
}
fmt.Printf("\n\n\n")
}