From 91c16c34dad41b55854a6c4ca9e7d29ad29ec078 Mon Sep 17 00:00:00 2001 From: Ben Cragg <bcvery1@gmail.com> Date: Thu, 14 Feb 2019 14:12:54 +0000 Subject: [PATCH] fixed area tests --- geometry_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry_test.go b/geometry_test.go index e0cd305..914c944 100644 --- a/geometry_test.go +++ b/geometry_test.go @@ -204,7 +204,7 @@ func TestCircle_Area(t *testing.T) { { name: "Circle.Area(): positive radius", fields: fields{radius: 10, center: pixel.ZV}, - want: 20 * math.Pi, + want: 100 * math.Pi, }, { name: "Circle.Area(): zero radius", @@ -214,7 +214,7 @@ func TestCircle_Area(t *testing.T) { { name: "Circle.Area(): negative radius", fields: fields{radius: -5, center: pixel.ZV}, - want: -10 * math.Pi, + want: 25 * math.Pi, }, } for _, tt := range tests { -- GitLab