]> Cypherpunks repositories - gostls13.git/commit
testing: fix rounding error in roundDown10
authorDave Cheney <dave@cheney.net>
Sat, 1 Jun 2013 23:13:12 +0000 (09:13 +1000)
committerDave Cheney <dave@cheney.net>
Sat, 1 Jun 2013 23:13:12 +0000 (09:13 +1000)
commita28609d66f74383ad23015aa810e3c76444057f5
tree808f0d239a4331be12c75a5beccdd0813cdaafdb
parent83d4cd758c20bdfa1acb13a14425db692bc445e2
testing: fix rounding error in roundDown10

Fixes #5599.

Thanks to minux.ma for the suggested fix.

As we now have a harness to test testing internal functions I added some coverage for testing.roundUp, as it is the main consumer of roundDown10.

R=minux.ma, kr, r
CC=golang-dev
https://golang.org/cl/9926043
src/pkg/testing/benchmark.go
src/pkg/testing/benchmark_test.go
src/pkg/testing/export_test.go