@@ -177,26 +177,26 @@ TEST_CASE ("as_hexadecimal fixed") {
177
177
SUBCASE (" max" ) { string_eq (as_hexadecimal (UINT32_MAX, 8 ), " FFFFFFFF" ); }
178
178
}
179
179
180
- TEST_CASE (" as_hexadecimal " ) {
180
+ TEST_CASE (" uint32_to_Hex " ) {
181
181
SUBCASE (" 0-15 (+/-)" ) {
182
182
for (int i= 1 ; i < 10 ; i++) {
183
- string_eq (as_hexadecimal (i), as_string (i));
184
- string_eq (as_hexadecimal (i), as_string (i));
183
+ string_eq (uint32_to_Hex (i), as_string (i));
184
+ string_eq (uint32_to_Hex (i), as_string (i));
185
185
}
186
- string_eq (as_hexadecimal (0 ), " 0" );
187
- string_eq (as_hexadecimal (10 ), " A" );
188
- string_eq (as_hexadecimal (11 ), " B" );
189
- string_eq (as_hexadecimal (12 ), " C" );
190
- string_eq (as_hexadecimal (13 ), " D" );
191
- string_eq (as_hexadecimal (14 ), " E" );
192
- string_eq (as_hexadecimal (15 ), " F" );
186
+ string_eq (uint32_to_Hex (0 ), " 0" );
187
+ string_eq (uint32_to_Hex (10 ), " A" );
188
+ string_eq (uint32_to_Hex (11 ), " B" );
189
+ string_eq (uint32_to_Hex (12 ), " C" );
190
+ string_eq (uint32_to_Hex (13 ), " D" );
191
+ string_eq (uint32_to_Hex (14 ), " E" );
192
+ string_eq (uint32_to_Hex (15 ), " F" );
193
193
}
194
194
SUBCASE (" arbitary" ) {
195
- string_eq (as_hexadecimal (0x12 ), " 12" );
196
- string_eq (as_hexadecimal (0xABC ), " ABC" );
197
- string_eq (as_hexadecimal (0x80000001 ), " 80000001" );
195
+ string_eq (uint32_to_Hex (0x12 ), " 12" );
196
+ string_eq (uint32_to_Hex (0xABC ), " ABC" );
197
+ string_eq (uint32_to_Hex (0x80000001 ), " 80000001" );
198
198
}
199
- SUBCASE (" max" ) { string_eq (as_hexadecimal (UINT32_MAX), " FFFFFFFF" ); }
199
+ SUBCASE (" max" ) { string_eq (uint32_to_Hex (UINT32_MAX), " FFFFFFFF" ); }
200
200
}
201
201
202
202
TEST_CASE (" binary to hexadecimal" ) {
0 commit comments