summaryrefslogtreecommitdiff
path: root/test/ken/sliceslice.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
committerOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
commit3e45412327a2654a77944249962b3652e6142299 (patch)
treebc3bf69452afa055423cbe0c5cfa8ca357df6ccf /test/ken/sliceslice.go
parentc533680039762cacbc37db8dc7eed074c3e497be (diff)
downloadgolang-3e45412327a2654a77944249962b3652e6142299.tar.gz
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'test/ken/sliceslice.go')
-rw-r--r--test/ken/sliceslice.go20
1 files changed, 20 insertions, 0 deletions
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