u02/tests: Fix inverted logic in comment
parent
c5289609e5
commit
2290a6314d
|
@ -514,7 +514,7 @@ TEST_CASE("Sweep line (prop: Barycentric coordinates)") {
|
||||||
for (int y = 0; y < size; y++) {
|
for (int y = 0; y < size; y++) {
|
||||||
if (point_in_triangle(x0, y0, x1, y1, x2, y2, x, y)) {
|
if (point_in_triangle(x0, y0, x1, y1, x2, y2, x, y)) {
|
||||||
if (!canvas->get_pixel(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.
|
// but point is not set.
|
||||||
// This must not happen → fail test.
|
// This must not happen → fail test.
|
||||||
pass = false;
|
pass = false;
|
||||||
|
|
Reference in New Issue