diff options
author | Russ Cox <rsc@golang.org> | 2010-09-08 23:48:01 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-09-08 23:48:01 -0400 |
commit | 49af829a9ff5bd513fdf3835b5da1646ccd9960a (patch) | |
tree | 58e299e2f35a819d9620c211ecde58c77d5f5fd8 /test/ken | |
parent | a9c5a56d466e65b772c2284803646f54b27348ad (diff) | |
download | go-49af829a9ff5bd513fdf3835b5da1646ccd9960a.tar.gz |
test new slices
R=r
CC=golang-dev
http://codereview.appspot.com/2128047
Diffstat (limited to 'test/ken')
-rw-r--r-- | test/ken/slicearray.go | 20 | ||||
-rw-r--r-- | test/ken/sliceslice.go | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/ken/slicearray.go b/test/ken/slicearray.go index 536bbf56b..6e7088e19 100644 --- a/test/ken/slicearray.go +++ b/test/ken/slicearray.go @@ -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 @@ -65,6 +71,10 @@ func main() { tstb() by = bx[0:8] tstb() + by = bx[:8] + tstb() + by = bx[:hb] + tstb() lb = 2 hb = 8 @@ -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 @@ -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 diff --git a/test/ken/sliceslice.go b/test/ken/sliceslice.go index 7e7f1b4ac..5a35acaf4 100644 --- a/test/ken/sliceslice.go +++ b/test/ken/sliceslice.go @@ -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 @@ -56,6 +62,10 @@ func main() { tstb() by = bx[0:8] tstb() + by = bx[:8] + tstb() + by = bx[:hb] + tstb() lb = 2 hb = 8 @@ -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 @@ -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 |