algo/go/10_recursion/RangAll_test.go

19 lines
288 B
Go
Raw Normal View History

2019-05-15 22:35:59 +08:00
package Recursion
import "testing"
func TestRangeALL(t *testing.T) {
slice1 := NewRangeArray(4)
for i:=0; i<4; i++{
slice1.value[i] = i+1
}
slice1.RangeALL(0)
slice2 := NewRangeArray(3)
slice2.value[0] = "a"
slice2.value[1] = "b"
slice2.value[2] = "c"
slice2.RangeALL(0)
}