1
0
mirror of https://github.com/golang/go synced 2024-11-24 15:10:02 -07:00

test new slices

R=r
CC=golang-dev
https://golang.org/cl/2128047
This commit is contained in:
Russ Cox 2010-09-08 23:48:01 -04:00
parent e21b3a40ac
commit f4a5d733a5
2 changed files with 40 additions and 0 deletions

View File

@ -33,12 +33,18 @@ func main() {
tstb() tstb()
by = bx[lb:] by = bx[lb:]
tstb() tstb()
by = bx[:hb]
tstb()
by = bx[0:hb] by = bx[0:hb]
tstb() tstb()
by = bx[0:10] by = bx[0:10]
tstb() tstb()
by = bx[0:] by = bx[0:]
tstb() tstb()
by = bx[:10]
tstb()
by = bx[:]
tstb()
lb = 2 lb = 2
hb = 10 hb = 10
@ -65,6 +71,10 @@ func main() {
tstb() tstb()
by = bx[0:8] by = bx[0:8]
tstb() tstb()
by = bx[:8]
tstb()
by = bx[:hb]
tstb()
lb = 2 lb = 2
hb = 8 hb = 8
@ -86,12 +96,18 @@ func main() {
tstf() tstf()
fy = fx[lb:] fy = fx[lb:]
tstf() tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb] fy = fx[0:hb]
tstf() tstf()
fy = fx[0:10] fy = fx[0:10]
tstf() tstf()
fy = fx[0:] fy = fx[0:]
tstf() tstf()
fy = fx[:10]
tstf()
fy = fx[:]
tstf()
lb = 2 lb = 2
hb = 10 hb = 10
@ -114,10 +130,14 @@ func main() {
tstf() tstf()
fy = fx[lb:8] fy = fx[lb:8]
tstf() tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb] fy = fx[0:hb]
tstf() tstf()
fy = fx[0:8] fy = fx[0:8]
tstf() tstf()
fy = fx[:8]
tstf()
lb = 2 lb = 2
hb = 8 hb = 8

View File

@ -24,12 +24,18 @@ func main() {
tstb() tstb()
by = bx[lb:] by = bx[lb:]
tstb() tstb()
by = bx[:hb]
tstb()
by = bx[0:hb] by = bx[0:hb]
tstb() tstb()
by = bx[0:10] by = bx[0:10]
tstb() tstb()
by = bx[0:] by = bx[0:]
tstb() tstb()
by = bx[:10]
tstb()
by = bx[:]
tstb()
lb = 2 lb = 2
hb = 10 hb = 10
@ -56,6 +62,10 @@ func main() {
tstb() tstb()
by = bx[0:8] by = bx[0:8]
tstb() tstb()
by = bx[:8]
tstb()
by = bx[:hb]
tstb()
lb = 2 lb = 2
hb = 8 hb = 8
@ -77,12 +87,18 @@ func main() {
tstf() tstf()
fy = fx[lb:] fy = fx[lb:]
tstf() tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb] fy = fx[0:hb]
tstf() tstf()
fy = fx[0:10] fy = fx[0:10]
tstf() tstf()
fy = fx[0:] fy = fx[0:]
tstf() tstf()
fy = fx[:10]
tstf()
fy = fx[:]
tstf()
lb = 2 lb = 2
hb = 10 hb = 10
@ -105,10 +121,14 @@ func main() {
tstf() tstf()
fy = fx[lb:8] fy = fx[lb:8]
tstf() tstf()
fy = fx[:hb]
tstf()
fy = fx[0:hb] fy = fx[0:hb]
tstf() tstf()
fy = fx[0:8] fy = fx[0:8]
tstf() tstf()
fy = fx[:8]
tstf()
lb = 2 lb = 2
hb = 8 hb = 8