tests/unix/extra_coverage: Add test for mp_vprintf with bad fmt spec.

pull/1/head
Damien George 2017-06-30 12:25:42 +10:00
parent adf22c19ae
commit 369e7fd178
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ false true
2147483648
80000000
80000000
abc
# vstr
tests
sts

View File

@ -154,6 +154,7 @@ STATIC mp_obj_t extra_coverage(void) {
mp_printf(&mp_plat_print, "%u\n", 0x80000000); // should print unsigned
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
}
// vstr