From: Shenghou Ma Date: Mon, 9 Apr 2012 17:55:51 +0000 (+0800) Subject: [release-branch.go1] doc/code: update newmath.Sqrt test case to make sure test succeed X-Git-Tag: go1.0.1~37 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8f72d82b63721c2b2bdbef28ee2e9169a0bce5ab;p=gostls13.git [release-branch.go1] doc/code: update newmath.Sqrt test case to make sure test succeed ««« backport aa9954952235 doc/code: update newmath.Sqrt test case to make sure test succeed Fixes #3445. R=golang-dev, rsc, mtj CC=golang-dev https://golang.org/cl/5975061 »»» --- diff --git a/doc/code.html b/doc/code.html index b29f72a921..f2dfeebd48 100644 --- a/doc/code.html +++ b/doc/code.html @@ -384,7 +384,7 @@ package newmath import "testing" func TestSqrt(t *testing.T) { - const in, out = 9, 3 + const in, out = 4, 2 if x := Sqrt(in); x != out { t.Errorf("Sqrt(%v) = %v, want %v", in, x, out) } @@ -397,7 +397,7 @@ Now run the test with go test:
 $ go test example/newmath
-ok  	example/newmath
+ok  	example/newmath 0.165s