summaryrefslogtreecommitdiff
path: root/test/peano.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-09 11:18:32 -0700
committerRuss Cox <rsc@golang.org>2009-10-09 11:18:32 -0700
commit27e8d86dd9e9f8dc49e234a9750e3be2842a89c6 (patch)
tree1d0d3f6fed536b018ee2610e83747f9496d082ea /test/peano.go
parentaaa0702ec610b957133d8f19ca5233bb1800f46d (diff)
downloadgo-27e8d86dd9e9f8dc49e234a9750e3be2842a89c6.tar.gz
time tests; sort -nr times.out | sed 10q is illuminating.
cut the slowest tests down from a few seconds to under half a second. R=r DELTA=21 (6 added, 1 deleted, 14 changed) OCL=35509 CL=35519
Diffstat (limited to 'test/peano.go')
-rw-r--r--test/peano.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/peano.go b/test/peano.go
index 07e5f0ed3..ccff66bfe 100644
--- a/test/peano.go
+++ b/test/peano.go
@@ -124,7 +124,7 @@ func verify() {
func main() {
verify();
- for i := 0; i <= 10; i++ {
+ for i := 0; i <= 9; i++ {
print(i, "! = ", count(fact(gen(i))), "\n");
}
}