Skip to content

Commit

Permalink
Update test - allow slack in MinAreaCircle
Browse files Browse the repository at this point in the history
  • Loading branch information
slackydev authored Dec 18, 2024
1 parent 33b877b commit 4af06dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Tests/tpa_minareacircle.simba
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ begin
for I := 0 to High(ATPA) do
begin
C := ATPA[I].MinAreaCircle();
Assert(C = expected[i]);
Assert(Round(ATPA[I].Circularity()*100) = expectedCircularity[I]);

//img.DrawCircle(C, 255);
//img.DrawText('%.2f'.Format([ATPA[I].Circularity()]), C.Bounds, True, 255);
Assert(Abs(C.Radius - expected[i].Radius) <= 1);
Assert(Abs(ATPA[I].Circularity()*100 - expectedCircularity[I]) <= 1);
end;

//img.Show();
Expand Down

0 comments on commit 4af06dc

Please sign in to comment.