blob: 75d6132df96bccabde84439003d5ff5eedccacfc [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// run
Ian Lance Taylor939bab62009-12-23 22:08:27 -08002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2009 The Go Authors. All rights reserved.
Ian Lance Taylor939bab62009-12-23 22:08:27 -08004// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9import "fmt"
10
11var indent uint = 10
12func main() {
13 const dots = ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . " +
14 ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
15 const n = uint(len(dots))
16 i := 2 * indent
17 var s string
18 for ; i > n; i -= n {
19 s += fmt.Sprint(dots)
20 }
21 s += dots[0:i]
22 if s != ". . . . . . . . . . " {
23 panic(s)
24 }
25}