Skip to content

Commit 24b3658

Browse files
authored
Merge pull request #11 from TcMenu/main-font-correct
#7 fix tests
2 parents 9db8d2f + e73cf95 commit 24b3658

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_unicode_font/unicodeFontTests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ void testTextExtents() {
7474
int bl;
7575
handler->setFont(OpenSansCyrillicLatin18);
7676
Coord coord = handler->textExtents("Abc", &bl, false);
77-
TEST_ASSERT_EQUAL_INT16(41, coord.x);
77+
TEST_ASSERT_EQUAL_INT16(43, coord.x);
7878
TEST_ASSERT_EQUAL_INT16(28, coord.y);
7979

8080
handler->setFont(RobotoMedium24);
8181
coord = handler->textExtents("Abc", &bl, false);
82-
TEST_ASSERT_EQUAL_INT16(45, coord.x);
82+
TEST_ASSERT_EQUAL_INT16(58, coord.x);
8383
TEST_ASSERT_EQUAL_INT16(33, coord.y);
8484
}
8585

@@ -125,10 +125,10 @@ void testAdafruitFont() {
125125

126126
void setup() {
127127
UNITY_BEGIN();
128-
RUN_TEST_WITH_PRINT(testTextExtents);
129128
RUN_TEST_WITH_PRINT(testGetGlyphOnEachRange);
130129
RUN_TEST_WITH_PRINT(testReadingEveryGlyphInRange);
131130
RUN_TEST_WITH_PRINT(testAdafruitFont);
131+
RUN_TEST_WITH_PRINT(testTextExtents);
132132
UNITY_END();
133133
}
134134

0 commit comments

Comments
 (0)