@@ -31,7 +31,7 @@ uint32_t getFromBufferOrError() {
31
31
}
32
32
}
33
33
34
- void test_Utf8EncoderAscii () {
34
+ void testUtf8EncoderAscii () {
35
35
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_EXT_ASCII);
36
36
textProcessor.pushChars (" Hello" );
37
37
// force extended ascii processing!
@@ -48,7 +48,7 @@ void test_Utf8EncoderAscii() {
48
48
TEST_ASSERT_FALSE (!unicodeChars.empty ());
49
49
}
50
50
51
- void test_Utf8EncoderUnicodeCodesDirect () {
51
+ void testUtf8EncoderUnicodeCodesDirect () {
52
52
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
53
53
54
54
textProcessor.pushChar ((char )0b00100100 );
@@ -67,7 +67,7 @@ void test_Utf8EncoderUnicodeCodesDirect() {
67
67
TEST_ASSERT_FALSE (!unicodeChars.empty ());
68
68
}
69
69
70
- void test_Utf8EncoderUnicodeBasicCase () {
70
+ void testUtf8EncoderUnicodeBasicCase () {
71
71
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
72
72
textProcessor.pushChars (" Hello" );
73
73
@@ -79,7 +79,7 @@ void test_Utf8EncoderUnicodeBasicCase() {
79
79
TEST_ASSERT_FALSE (!unicodeChars.empty ());
80
80
}
81
81
82
- void test_Utf8EncoderUnicodeMulti () {
82
+ void testUtf8EncoderUnicodeMulti () {
83
83
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
84
84
textProcessor.pushChars (" Світ" ); // \xD0\xA1\xD0\xB2\xD1\x96\xD1\x82
85
85
@@ -90,7 +90,7 @@ void test_Utf8EncoderUnicodeMulti() {
90
90
TEST_ASSERT_FALSE (!unicodeChars.empty ());
91
91
}
92
92
93
- void test_Utf8EncoderUnicodeOverlongNull () {
93
+ void testUtf8EncoderUnicodeOverlongNull () {
94
94
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
95
95
textProcessor.pushChar ((char )0xc0 );
96
96
textProcessor.pushChar ((char )0x80 );
@@ -113,7 +113,7 @@ void test_Utf8EncoderUnicodeOverlongNull() {
113
113
TEST_ASSERT_FALSE (!unicodeChars.empty ());
114
114
}
115
115
116
- void test_BrokenSequenceContinueAsAscii () {
116
+ void testBrokenSequenceContinueAsAscii () {
117
117
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
118
118
textProcessor.pushChar ((char )0xc3 );
119
119
textProcessor.pushChar ((char )' H' );
@@ -156,7 +156,7 @@ void test_BrokenSequenceContinueAsAscii() {
156
156
TEST_ASSERT_EQUAL_UINT32 (0x0421 , getFromBufferOrError ());
157
157
}
158
158
159
- void test_invalidBytesNotProcessed () {
159
+ void testinvalidBytesNotProcessed () {
160
160
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
161
161
textProcessor.pushChar ((char )0xff );
162
162
TEST_ASSERT_EQUAL_UINT32 (TC_UNICODE_CHAR_ERROR, getFromBufferOrError ());
@@ -168,7 +168,7 @@ void test_invalidBytesNotProcessed() {
168
168
TEST_ASSERT_FALSE (!unicodeChars.empty ());
169
169
}
170
170
171
- void test_Utf8EncoderUnicodeOverlongSlash () {
171
+ void testUtf8EncoderUnicodeOverlongSlash () {
172
172
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
173
173
textProcessor.pushChar ((char )0xc0 );
174
174
textProcessor.pushChar ((char )0xAF );
@@ -191,7 +191,7 @@ void test_Utf8EncoderUnicodeOverlongSlash() {
191
191
TEST_ASSERT_FALSE (!unicodeChars.empty ());
192
192
}
193
193
194
- void test_Utf8EncoderReallyLargeCodes () {
194
+ void testUtf8EncoderReallyLargeCodes () {
195
195
tccore::Utf8TextProcessor textProcessor (textHandler, nullptr , tccore::ENCMODE_UTF8);
196
196
textProcessor.pushChars (" ﬓﬔﬕﬖ" );
197
197
// force extended ascii processing!
@@ -205,15 +205,15 @@ void test_Utf8EncoderReallyLargeCodes() {
205
205
206
206
void setup () {
207
207
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 );
217
217
UNITY_END ();
218
218
}
219
219
0 commit comments