Skip to content

Commit

Permalink
test new slices
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Sep 9, 2010
1 parent e21b3a4 commit f4a5d73
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/ken/slicearray.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ func main() {
tstb()
by = bx[lb:]
tstb()
by = bx[:hb]
tstb()
by = bx[0:hb]
tstb()
by = bx[0:10]
tstb()
by = bx[0:]
tstb()
by = bx[:10]
tstb()
by = bx[:]
tstb()

lb = 2
hb = 10
Expand All @@ -65,6 +71,10 @@ func main() {
tstb()
by = bx[0:8]
tstb()
by = bx[:8]
tstb()
by = bx[:hb]
tstb()

lb = 2
hb = 8
Expand All @@ -86,12 +96,18 @@ func main() {
tstf()
fy = fx[lb:]
tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb]
tstf()
fy = fx[0:10]
tstf()
fy = fx[0:]
tstf()
fy = fx[:10]
tstf()
fy = fx[:]
tstf()

lb = 2
hb = 10
Expand All @@ -114,10 +130,14 @@ func main() {
tstf()
fy = fx[lb:8]
tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb]
tstf()
fy = fx[0:8]
tstf()
fy = fx[:8]
tstf()

lb = 2
hb = 8
Expand Down
20 changes: 20 additions & 0 deletions test/ken/sliceslice.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@ func main() {
tstb()
by = bx[lb:]
tstb()
by = bx[:hb]
tstb()
by = bx[0:hb]
tstb()
by = bx[0:10]
tstb()
by = bx[0:]
tstb()
by = bx[:10]
tstb()
by = bx[:]
tstb()

lb = 2
hb = 10
Expand All @@ -56,6 +62,10 @@ func main() {
tstb()
by = bx[0:8]
tstb()
by = bx[:8]
tstb()
by = bx[:hb]
tstb()

lb = 2
hb = 8
Expand All @@ -77,12 +87,18 @@ func main() {
tstf()
fy = fx[lb:]
tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb]
tstf()
fy = fx[0:10]
tstf()
fy = fx[0:]
tstf()
fy = fx[:10]
tstf()
fy = fx[:]
tstf()

lb = 2
hb = 10
Expand All @@ -105,10 +121,14 @@ func main() {
tstf()
fy = fx[lb:8]
tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb]
tstf()
fy = fx[0:8]
tstf()
fy = fx[:8]
tstf()

lb = 2
hb = 8
Expand Down

0 comments on commit f4a5d73

Please sign in to comment.