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
diff --git a/src/pkg/testing/export_test.go b/src/pkg/testing/export_test.go
index 3084efd..89781b4 100644
--- a/src/pkg/testing/export_test.go
+++ b/src/pkg/testing/export_test.go
@@ -4,4 +4,7 @@
package testing
-var RoundDown10 = roundDown10
+var (
+ RoundDown10 = roundDown10
+ RoundUp = roundUp
+)