From 8f72d82b63721c2b2bdbef28ee2e9169a0bce5ab Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Tue, 10 Apr 2012 01:55:51 +0800 Subject: [PATCH] [release-branch.go1] doc/code: update newmath.Sqrt test case to make sure test succeed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« 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 »»» --- doc/code.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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
 

-- 2.48.1