Commit 906fb89f authored by Damien George's avatar Damien George

unix/coverage: Add test for printing literal % character.

parent c2bb4519
......@@ -161,6 +161,7 @@ STATIC mp_obj_t extra_coverage(void) {
mp_printf(&mp_plat_print, "%x\n", 0x80000000); // should print unsigned
mp_printf(&mp_plat_print, "%X\n", 0x80000000); // should print unsigned
mp_printf(&mp_plat_print, "abc\n%"); // string ends in middle of format specifier
mp_printf(&mp_plat_print, "%%\n"); // literal % character
}
// GC
......
......@@ -13,6 +13,7 @@ false true
80000000
80000000
abc
%
# GC
0
0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment