summaryrefslogtreecommitdiff
path: root/test/ken/slicearray.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/ken/slicearray.go')
-rw-r--r--test/ken/slicearray.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/ken/slicearray.go b/test/ken/slicearray.go
index a8f5ad928..f24c7fc9c 100644
--- a/test/ken/slicearray.go
+++ b/test/ken/slicearray.go
@@ -14,8 +14,7 @@ var lb,hb int
var t int
func
-main()
-{
+main() {
lb = 0; hb = 10;
by = &bx; tstb();
@@ -82,8 +81,7 @@ main()
}
func
-tstb()
-{
+tstb() {
t++;
if len(by) != hb-lb {
panicln("t=", t, "lb=", lb, "hb=", hb,
@@ -104,8 +102,7 @@ tstb()
}
func
-tstf()
-{
+tstf() {
t++;
if len(fy) != hb-lb {
panicln("t=", t, "lb=", lb, "hb=", hb,
@@ -126,8 +123,7 @@ tstf()
}
func
-init()
-{
+init() {
for i:=0; i<len(bx); i++ {
bx[i] = byte(i+20);
}