feat(Go-StudyExample):包方法重构

This commit is contained in:
Huangzj
2020-12-16 11:30:31 +08:00
parent 1d21a9634e
commit a97c2c9bcc
17 changed files with 74 additions and 125 deletions
@@ -6,13 +6,16 @@
package problem
import "fmt"
import (
"fmt"
"testing"
)
const (
SIZE = 4
)
func MatrixRotationTest() {
func TestMatrixRotationTest(t *testing.T) {
//矩阵旋转.....
e := [SIZE][SIZE]int{{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}, {12, 13, 14, 15}}
MatrixRotation(e)