Skip to content

Commit c5310a6

Browse files
authored
Create RangAll_test.go
1 parent 356f387 commit c5310a6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

go/10_recursion/RangAll_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package Recursion
2+
3+
import "testing"
4+
5+
func TestRangeALL(t *testing.T) {
6+
slice1 := NewRangeArray(4)
7+
for i:=0; i<4; i++{
8+
slice1.value[i] = i+1
9+
}
10+
slice1.RangeALL(0)
11+
12+
slice2 := NewRangeArray(3)
13+
slice2.value[0] = "a"
14+
slice2.value[1] = "b"
15+
slice2.value[2] = "c"
16+
slice2.RangeALL(0)
17+
18+
}

0 commit comments

Comments
 (0)