diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-04-10 01:55:51 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-04-10 01:55:51 +0800 |
commit | 25e02d519d205f7424fdc2a1e6926d3dee6544b4 (patch) | |
tree | aceeea3741eded2de3ce85a5e635933c43284e96 /doc/code.html | |
parent | 9bc8dd398548c76a15642026a60275145f926894 (diff) | |
download | go-git-25e02d519d205f7424fdc2a1e6926d3dee6544b4.tar.gz |
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
Diffstat (limited to 'doc/code.html')
-rw-r--r-- | doc/code.html | 4 |
1 files 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 <code>go test</code>: <pre> $ go test example/newmath -ok example/newmath +ok example/newmath 0.165s </pre> <p> |