u02/tests: Fix inverted logic in comment
This commit is contained in:
parent
c5289609e5
commit
2290a6314d
|
@ -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;
|
||||
|
|
Reference in a new issue