1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/fmt_print: add test for print_bytes_hex()

This commit is contained in:
Benjamin Valentin 2022-11-18 13:40:59 +01:00
parent 95e654f232
commit 9dc63f583a
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,8 @@ int main(void)
print_str("\n"); print_str("\n");
print_float(1.2345, 5); print_float(1.2345, 5);
print_str("\n"); print_str("\n");
print_bytes_hex("0123456789", 10);
print_str("\n");
/* test mixing of printf() and fmt's print() works fine */ /* test mixing of printf() and fmt's print() works fine */
printf("%s", "Test"); printf("%s", "Test");
/* test fmt's print indeed only honors the length parameter and doesn't /* test fmt's print indeed only honors the length parameter and doesn't

View File

@ -15,6 +15,7 @@ def testfunc(child):
child.expect_exact('18446744073709551615') child.expect_exact('18446744073709551615')
child.expect_exact('-9223372036854775808') child.expect_exact('-9223372036854775808')
child.expect_exact('1.23450') child.expect_exact('1.23450')
child.expect_exact('30313233343536373839')
child.expect_exact('Test successful.') child.expect_exact('Test successful.')