Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // run |
Ian Lance Taylor | 939bab6 | 2009-12-23 22:08:27 -0800 | [diff] [blame] | 2 | |
Emmanuel Odeke | 53fd522 | 2016-04-10 14:32:26 -0700 | [diff] [blame] | 3 | // Copyright 2009 The Go Authors. All rights reserved. |
Ian Lance Taylor | 939bab6 | 2009-12-23 22:08:27 -0800 | [diff] [blame] | 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | import "fmt" |
| 10 | |
| 11 | var indent uint = 10 |
| 12 | func 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 | } |