Changeset fb420e48 in mainline for uspace/lib/gfx/test/coord.c
- Timestamp:
- 2019-12-16T13:47:33Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e9781f
- Parents:
- c2250702
- git-author:
- Jiri Svoboda <jiri@…> (2019-12-15 13:47:28)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-12-16 13:47:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gfx/test/coord.c
rc2250702 rfb420e48 524 524 } 525 525 526 /** gfx_pix_inside_rect for */ 527 PCUT_TEST(pix_inside_rect) 528 { 529 gfx_coord2_t coord; 530 gfx_rect_t rect; 531 532 rect.p0.x = 1; 533 rect.p0.y = 2; 534 rect.p1.x = 3; 535 rect.p1.y = 4; 536 537 coord.x = 0; 538 coord.y = 1; 539 PCUT_ASSERT_FALSE(gfx_pix_inside_rect(&coord, &rect)); 540 541 coord.x = 1; 542 coord.y = 1; 543 PCUT_ASSERT_FALSE(gfx_pix_inside_rect(&coord, &rect)); 544 545 coord.x = 0; 546 coord.y = 2; 547 PCUT_ASSERT_FALSE(gfx_pix_inside_rect(&coord, &rect)); 548 549 coord.x = 1; 550 coord.y = 2; 551 PCUT_ASSERT_TRUE(gfx_pix_inside_rect(&coord, &rect)); 552 553 coord.x = 2; 554 coord.y = 3; 555 PCUT_ASSERT_TRUE(gfx_pix_inside_rect(&coord, &rect)); 556 557 coord.x = 3; 558 coord.y = 3; 559 PCUT_ASSERT_FALSE(gfx_pix_inside_rect(&coord, &rect)); 560 561 coord.x = 2; 562 coord.y = 4; 563 PCUT_ASSERT_FALSE(gfx_pix_inside_rect(&coord, &rect)); 564 565 coord.x = 3; 566 coord.y = 4; 567 PCUT_ASSERT_FALSE(gfx_pix_inside_rect(&coord, &rect)); 568 } 569 526 570 PCUT_EXPORT(coord);
Note:
See TracChangeset
for help on using the changeset viewer.