This commit is contained in:
VicRen
2021-01-07 09:05:03 +08:00
parent 9383aba292
commit 89a6a7f664
2 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
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)
}
})
}
}