version v2.3.0 (#2392)

* v2.3.0

* up

* up

* up
This commit is contained in:
John Guo
2023-01-11 19:19:41 +08:00
committed by GitHub
parent 5e72b03b0a
commit 6ff4ed84e5
36 changed files with 511 additions and 260 deletions

View File

@ -38,7 +38,7 @@ func Test_Slice(t *testing.T) {
t.AssertEQ(gconv.SliceAny(" [26, 27] "), []interface{}{26, 27})
})
gtest.C(t, func(t *gtest.T) {
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1),
gvar.New(2),
}
@ -78,7 +78,7 @@ func Test_Slice_Int32s(t *testing.T) {
t.AssertEQ(gconv.Int32s([]float64{1, 2}), []int32{1, 2})
t.AssertEQ(gconv.Int32s([][]byte{[]byte{byte(1)}, []byte{byte(2)}}), []int32{1, 2})
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1),
gvar.New(2),
}
@ -107,7 +107,7 @@ func Test_Slice_Int64s(t *testing.T) {
t.AssertEQ(gconv.Int64s([]float64{1, 2}), []int64{1, 2})
t.AssertEQ(gconv.Int64s([][]byte{[]byte{byte(1)}, []byte{byte(2)}}), []int64{1, 2})
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1),
gvar.New(2),
}
@ -137,7 +137,7 @@ func Test_Slice_Uints(t *testing.T) {
t.AssertEQ(gconv.Uints([]float64{1, 2}), []uint{1, 2})
t.AssertEQ(gconv.Uints([][]byte{[]byte{byte(1)}, []byte{byte(2)}}), []uint{1, 2})
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1),
gvar.New(2),
}
@ -167,7 +167,7 @@ func Test_Slice_Uint32s(t *testing.T) {
t.AssertEQ(gconv.Uint32s([]float64{1, 2}), []uint32{1, 2})
t.AssertEQ(gconv.Uint32s([][]byte{[]byte{byte(1)}, []byte{byte(2)}}), []uint32{1, 2})
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1),
gvar.New(2),
}
@ -197,7 +197,7 @@ func Test_Slice_Uint64s(t *testing.T) {
t.AssertEQ(gconv.Uint64s([]float64{1, 2}), []uint64{1, 2})
t.AssertEQ(gconv.Uint64s([][]byte{[]byte{byte(1)}, []byte{byte(2)}}), []uint64{1, 2})
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1),
gvar.New(2),
}
@ -224,7 +224,7 @@ func Test_Slice_Float32s(t *testing.T) {
t.AssertEQ(gconv.Float32s([]float32{123}), []float32{123})
t.AssertEQ(gconv.Float32s([]float64{123}), []float32{123})
s := []*gvar.Var{
s := gvar.Vars{
gvar.New(1.1),
gvar.New(2.1),
}