mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 04:51:12 +02:00
unix/coverage: Add coverage test for left adjusted print.
Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
committed by
Damien George
parent
1a8f4b290b
commit
fc6205c4f0
@@ -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
|
||||||
|
@@ -14,6 +14,7 @@ false true
|
|||||||
80000000
|
80000000
|
||||||
abc
|
abc
|
||||||
%
|
%
|
||||||
|
.a .
|
||||||
# GC
|
# GC
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
|
Reference in New Issue
Block a user