unix/coverage: Add coverage test for left adjusted print.

Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
Jeff Epler
2025-06-13 17:50:05 +02:00
committed by Damien George
parent 1a8f4b290b
commit fc6205c4f0
2 changed files with 2 additions and 0 deletions

View File

@@ -220,6 +220,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, "abc\n%"); // string ends in middle of format specifier
mp_printf(&mp_plat_print, "%%\n"); // literal % character mp_printf(&mp_plat_print, "%%\n"); // literal % character
mp_printf(&mp_plat_print, ".%-3s.\n", "a"); // left adjust
} }
// GC // GC

View File

@@ -14,6 +14,7 @@ false true
80000000 80000000
abc abc
% %
.a .
# GC # GC
0 0
0 0