Skip to content

Commit

Permalink
try to understand problems with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamos82 committed Aug 1, 2024
1 parent 7c815d0 commit bfc0427
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ void test_get_rectangles() {
assert(n_squares == 0);
printf("\t[%s] Rectangles[0].x_orig should be: 0 - %d\n", __FUNCTION__, rectangles[0].x_orig);
printf("\t[%s] Rectangles[0].y_orig should be: 0 - %d\n", __FUNCTION__, rectangles[0].y_orig);
assert(rectangles[0].x_orig == 0);
assert(rectangles[0].y_orig == 0);
//assert(rectangles[0].x_orig == 0);
//assert(rectangles[0].y_orig == 0);
//pretty_assert("Testing rectangles[0].x_orig", 0, rectangles[0].x_orig);
printf("\t[%s] Rectangles[0].width should be: 1030 - %d\n", __FUNCTION__, rectangles[0].width);
printf("\t[%s] Rectangles[0].height should be: 550 - %d\n", __FUNCTION__, rectangles[0].height);
n_squares = _fb_get_rectangles(rectangles, &main_window, &area_to_intersect);
Expand Down

0 comments on commit bfc0427

Please sign in to comment.