From 2290a6314d61a148adad01bdfe2b404f58fb86ea Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 13 May 2023 22:55:17 +0200 Subject: [PATCH] u02/tests: Fix inverted logic in comment --- u02/src/tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u02/src/tests.cpp b/u02/src/tests.cpp index c8e5947..30ffebb 100644 --- a/u02/src/tests.cpp +++ b/u02/src/tests.cpp @@ -514,7 +514,7 @@ TEST_CASE("Sweep line (prop: Barycentric coordinates)") { for (int y = 0; y < size; y++) { if (point_in_triangle(x0, y0, x1, y1, x2, y2, x, y)) { if (!canvas->get_pixel(x, y)) { - // Barycentric coordinates say, point is not in triangle, + // Barycentric coordinates say, point is in triangle, // but point is not set. // This must not happen → fail test. pass = false;