MCPcopy
hub / github.com/Terry-Mao/goim / TestInt32

Function TestInt32

pkg/strings/ints_test.go:8–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestInt32(t *testing.T) {
9 i := []int32{1, 2, 3}
10 s := JoinInt32s(i, ",")
11 ii, _ := SplitInt32s(s, ",")
12 if !reflect.DeepEqual(i, ii) {
13 t.FailNow()
14 }
15}
16
17func TestInt64(t *testing.T) {
18 i := []int64{1, 2, 3}

Callers

nothing calls this directly

Calls 2

JoinInt32sFunction · 0.85
SplitInt32sFunction · 0.85

Tested by

no test coverage detected