206: Concealed square

This commit is contained in:
VicRen
2021-01-04 14:36:06 +08:00
parent 82566afa5e
commit 1e73911dd5
2 changed files with 72 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
package main
import (
"math/big"
"testing"
)
func Test_isMatch(t *testing.T) {
fn, _ := (&big.Int{}).SetString("10203040506070809", 0)
type args struct {
i *big.Int
}
tests := []struct {
name string
args args
want bool
}{
{
"test1",
args{
fn,
},
true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := isMatch(tt.args.i); got != tt.want {
t.Errorf("isMatch() = %v, want %v", got, tt.want)
}
})
}
}