Skip to content

Commit 429f3e6

Browse files
committed
Edit test names
1 parent 3480ae9 commit 429f3e6

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

test/test_unicode_font/unicodeFontTests.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bool checkGlyph(uint32_t code, uint32_t bmpOffset, int width, int height, int xA
8686
}
8787
}
8888

89-
void test_TextExtents() {
89+
void testTextExtents() {
9090
int bl;
9191
handler->setFont(OpenSansCyrillicLatin18);
9292
Coord coord = handler->textExtents("Abc", &bl, false);
@@ -99,13 +99,13 @@ void test_TextExtents() {
9999
TEST_ASSERT_EQUAL_INT16(28, coord.y);
100100
}
101101

102-
void test_GetGlyphOnEachRange() {
102+
void testGetGlyphOnEachRange() {
103103
TEST_ASSERT_TRUE(checkGlyph(65, 320, 11, 13, 11, 0, -18));
104104
TEST_ASSERT_TRUE(checkGlyph(55 + 128, 198, 2, 2, 5, 1, -12));
105105
TEST_ASSERT_TRUE(checkGlyph(17 + 1024, 285, 8, 13, 11, 2, -18));
106106
}
107107

108-
void test_ReadingEveryGlyphInRange() {
108+
void testReadingEveryGlyphInRange() {
109109
GlyphWithBitmap glyphWithBitmap;
110110

111111
// test all known characters work
@@ -123,7 +123,7 @@ void test_ReadingEveryGlyphInRange() {
123123
TEST_ASSERT_FALSE(handler->findCharInFont(0xFFFF, glyphWithBitmap));
124124
}
125125

126-
void test_AdafruitFont() {
126+
void testAdafruitFont() {
127127
GlyphWithBitmap glyphWithBitmap;
128128
handler->setFont(RobotoMedium24pt);
129129

@@ -139,10 +139,10 @@ void test_AdafruitFont() {
139139

140140
void setup() {
141141
UNITY_BEGIN();
142-
RUN_TEST(test_TextExtents);
143-
RUN_TEST(test_GetGlyphOnEachRange);
144-
RUN_TEST(test_ReadingEveryGlyphInRange);
145-
RUN_TEST(test_AdafruitFont);
142+
RUN_TEST(testTextExtents);
143+
RUN_TEST(testGetGlyphOnEachRange);
144+
RUN_TEST(testReadingEveryGlyphInRange);
145+
RUN_TEST(testAdafruitFont);
146146
UNITY_END();
147147
}
148148

test/test_utf8_processing/utf8Processing.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ uint32_t getFromBufferOrError() {
3131
}
3232
}
3333

34-
void test_Utf8EncoderAscii() {
34+
void testUtf8EncoderAscii() {
3535
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_EXT_ASCII);
3636
textProcessor.pushChars("Hello");
3737
// force extended ascii processing!
@@ -48,7 +48,7 @@ void test_Utf8EncoderAscii() {
4848
TEST_ASSERT_FALSE(!unicodeChars.empty());
4949
}
5050

51-
void test_Utf8EncoderUnicodeCodesDirect() {
51+
void testUtf8EncoderUnicodeCodesDirect() {
5252
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
5353

5454
textProcessor.pushChar((char)0b00100100);
@@ -67,7 +67,7 @@ void test_Utf8EncoderUnicodeCodesDirect() {
6767
TEST_ASSERT_FALSE(!unicodeChars.empty());
6868
}
6969

70-
void test_Utf8EncoderUnicodeBasicCase() {
70+
void testUtf8EncoderUnicodeBasicCase() {
7171
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
7272
textProcessor.pushChars("Hello");
7373

@@ -79,7 +79,7 @@ void test_Utf8EncoderUnicodeBasicCase() {
7979
TEST_ASSERT_FALSE(!unicodeChars.empty());
8080
}
8181

82-
void test_Utf8EncoderUnicodeMulti() {
82+
void testUtf8EncoderUnicodeMulti() {
8383
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
8484
textProcessor.pushChars("Світ"); // \xD0\xA1\xD0\xB2\xD1\x96\xD1\x82
8585

@@ -90,7 +90,7 @@ void test_Utf8EncoderUnicodeMulti() {
9090
TEST_ASSERT_FALSE(!unicodeChars.empty());
9191
}
9292

93-
void test_Utf8EncoderUnicodeOverlongNull() {
93+
void testUtf8EncoderUnicodeOverlongNull() {
9494
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
9595
textProcessor.pushChar((char)0xc0);
9696
textProcessor.pushChar((char)0x80);
@@ -113,7 +113,7 @@ void test_Utf8EncoderUnicodeOverlongNull() {
113113
TEST_ASSERT_FALSE(!unicodeChars.empty());
114114
}
115115

116-
void test_BrokenSequenceContinueAsAscii() {
116+
void testBrokenSequenceContinueAsAscii() {
117117
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
118118
textProcessor.pushChar((char)0xc3);
119119
textProcessor.pushChar((char)'H');
@@ -156,7 +156,7 @@ void test_BrokenSequenceContinueAsAscii() {
156156
TEST_ASSERT_EQUAL_UINT32(0x0421, getFromBufferOrError());
157157
}
158158

159-
void test_invalidBytesNotProcessed() {
159+
void testinvalidBytesNotProcessed() {
160160
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
161161
textProcessor.pushChar((char)0xff);
162162
TEST_ASSERT_EQUAL_UINT32(TC_UNICODE_CHAR_ERROR, getFromBufferOrError());
@@ -168,7 +168,7 @@ void test_invalidBytesNotProcessed() {
168168
TEST_ASSERT_FALSE(!unicodeChars.empty());
169169
}
170170

171-
void test_Utf8EncoderUnicodeOverlongSlash() {
171+
void testUtf8EncoderUnicodeOverlongSlash() {
172172
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
173173
textProcessor.pushChar((char)0xc0);
174174
textProcessor.pushChar((char)0xAF);
@@ -191,7 +191,7 @@ void test_Utf8EncoderUnicodeOverlongSlash() {
191191
TEST_ASSERT_FALSE(!unicodeChars.empty());
192192
}
193193

194-
void test_Utf8EncoderReallyLargeCodes() {
194+
void testUtf8EncoderReallyLargeCodes() {
195195
tccore::Utf8TextProcessor textProcessor(textHandler, nullptr, tccore::ENCMODE_UTF8);
196196
textProcessor.pushChars("ﬓﬔﬕﬖ");
197197
// force extended ascii processing!
@@ -205,15 +205,15 @@ void test_Utf8EncoderReallyLargeCodes() {
205205

206206
void setup() {
207207
UNITY_BEGIN();
208-
RUN_TEST(test_Utf8EncoderAscii);
209-
RUN_TEST(test_Utf8EncoderUnicodeCodesDirect);
210-
RUN_TEST(test_Utf8EncoderUnicodeBasicCase);
211-
RUN_TEST(test_Utf8EncoderUnicodeMulti);
212-
RUN_TEST(test_Utf8EncoderUnicodeOverlongNull);
213-
RUN_TEST(test_BrokenSequenceContinueAsAscii);
214-
RUN_TEST(test_invalidBytesNotProcessed);
215-
RUN_TEST(test_Utf8EncoderUnicodeOverlongSlash);
216-
RUN_TEST(test_Utf8EncoderReallyLargeCodes);
208+
RUN_TEST(testUtf8EncoderAscii);
209+
RUN_TEST(testUtf8EncoderUnicodeCodesDirect);
210+
RUN_TEST(testUtf8EncoderUnicodeBasicCase);
211+
RUN_TEST(testUtf8EncoderUnicodeMulti);
212+
RUN_TEST(testUtf8EncoderUnicodeOverlongNull);
213+
RUN_TEST(testBrokenSequenceContinueAsAscii);
214+
RUN_TEST(testinvalidBytesNotProcessed);
215+
RUN_TEST(testUtf8EncoderUnicodeOverlongSlash);
216+
RUN_TEST(testUtf8EncoderReallyLargeCodes);
217217
UNITY_END();
218218
}
219219

0 commit comments

Comments
 (0)