Ejemplo n.º 1
0
func TestInt64SliceMap(t *testing.T) {
	af := func(i int64) int64 {
		return i + 1
	}
	l := util.Int64Slice{2, 4, 30, 22}
	assert.EqualValues(t, []int64{3, 5, 31, 23}, l.Map(af).ToInt64())
}