feat:优化项目信息
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
@ -19,13 +20,14 @@ func TestArrayFlip(t *testing.T) {
|
||||
//d := a & b & c
|
||||
//t.Log(d)
|
||||
|
||||
a := make([]int, 5)
|
||||
t.Log(a)
|
||||
t.Log(a[4])
|
||||
a = append(a, []int{1, 2, 3, 4, 5, 6, 7, 8, 9}...)
|
||||
t.Log(a)
|
||||
t.Log(len(a))
|
||||
t.Log(cap(a))
|
||||
//a := make([]int, 5)
|
||||
//t.Log(a)
|
||||
//t.Log(a[4])
|
||||
//a = append(a, []int{1, 2, 3, 4, 5, 6, 7, 8, 9}...)
|
||||
//t.Log(a)
|
||||
//t.Log(len(a))
|
||||
//t.Log(cap(a))
|
||||
t.Log(math.Sqrt(4))
|
||||
}
|
||||
|
||||
func TestArrayStrings(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user