summaryrefslogtreecommitdiff
path: root/src/pkg/math/sqrt_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-01-11 11:25:37 -0800
committerRuss Cox <rsc@golang.org>2010-01-11 11:25:37 -0800
commit6de77b3decb69b0c806361740ab187339326cee0 (patch)
treeba592c0bd8be357ee2091fb25bad1c1c37664294 /src/pkg/math/sqrt_test.go
parent2f5f107abb40e5b1867af40787404d155ad937ea (diff)
downloadgolang-6de77b3decb69b0c806361740ab187339326cee0.tar.gz
math: fix pow10 comment, test portable Sqrt
R=r CC= golang-dev, Charlie Dorian, golang-dev http://codereview.appspot.com/184058
Diffstat (limited to 'src/pkg/math/sqrt_test.go')
-rw-r--r--src/pkg/math/sqrt_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pkg/math/sqrt_test.go b/src/pkg/math/sqrt_test.go
new file mode 100644
index 000000000..84cbc169e
--- /dev/null
+++ b/src/pkg/math/sqrt_test.go
@@ -0,0 +1,9 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package math
+
+// Make sqrtGo available for testing.
+
+func SqrtGo(x float64) float64 { return sqrtGo(x) }