u02/tests: Fix inverted logic in comment

filtered
Simon Bruder 2023-05-13 22:55:17 +02:00
parent c5289609e5
commit 2290a6314d
1 changed files with 1 additions and 1 deletions

View File

@ -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;