Files
2021-01-07 09:05:03 +08:00

28 lines
406 B
Go

package main
import "testing"
func Test_isCompatible(t *testing.T) {
type args struct {
n int
}
tests := []struct {
name string
args args
want bool
}{
{
"test1",
args{30},
true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := isCompatible(tt.args.n); got != tt.want {
t.Errorf("isCompatible() = %v, want %v", got, tt.want)
}
})
}
}