fixed area tests

This commit is contained in:
Ben Cragg 2019-02-14 14:12:54 +00:00
parent f21c48599f
commit b61602cdf4
1 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,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",
@ -298,7 +298,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 {