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 9479bda commit e73cf95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_unicode_font/unicodeFontTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ void testTextExtents() {
int bl;
handler->setFont(OpenSansCyrillicLatin18);
Coord coord = handler->textExtents("Abc", &bl, false);
TEST_ASSERT_EQUAL_INT16(41, coord.x);
TEST_ASSERT_EQUAL_INT16(43, coord.x);
TEST_ASSERT_EQUAL_INT16(28, coord.y);

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

Expand Down Expand Up @@ -125,10 +125,10 @@ void testAdafruitFont() {

void setup() {
UNITY_BEGIN();
RUN_TEST_WITH_PRINT(testTextExtents);
RUN_TEST_WITH_PRINT(testGetGlyphOnEachRange);
RUN_TEST_WITH_PRINT(testReadingEveryGlyphInRange);
RUN_TEST_WITH_PRINT(testAdafruitFont);
RUN_TEST_WITH_PRINT(testTextExtents);
UNITY_END();
}

Expand Down

0 comments on commit e73cf95

Please sign in to comment.