Skip to content

Commit

Permalink
#7 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davetcc committed Aug 10, 2024
1 parent e2d338b commit ac7948e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_unicode_font/unicodeFontTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ void testTextExtents() {
int bl;
handler->setFont(OpenSansCyrillicLatin18);
Coord coord = handler->textExtents("Abc", &bl, false);
TEST_ASSERT_EQUAL_INT16(31, coord.x);
TEST_ASSERT_EQUAL_INT16(24, coord.y);
TEST_ASSERT_EQUAL_INT16(41, coord.x);
TEST_ASSERT_EQUAL_INT16(28, coord.y);

handler->setFont(RobotoMedium24);
coord = handler->textExtents("Abc", &bl, false);
TEST_ASSERT_EQUAL_INT16(43, coord.x);
TEST_ASSERT_EQUAL_INT16(28, coord.y);
TEST_ASSERT_EQUAL_INT16(45, coord.x);
TEST_ASSERT_EQUAL_INT16(33, coord.y);
}

void testGetGlyphOnEachRange() {
Expand Down

0 comments on commit ac7948e

Please sign in to comment.