diff options
| author | Jeff Epler <jepler@gmail.com> | 2025-06-13 17:50:05 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-06-16 13:59:57 +1000 |
| commit | fc6205c4f005dcc9d0560cfe1619f022db8ff12f (patch) | |
| tree | 42068f69a337b4f86bd3ce34b3d82e968fb3913b | |
| parent | 1a8f4b290bc19cc3981f6deb2cb10a40a7b3bbea (diff) | |
unix/coverage: Add coverage test for left adjusted print.
Signed-off-by: Jeff Epler <jepler@gmail.com>
| -rw-r--r-- | ports/unix/coverage.c | 1 | ||||
| -rw-r--r-- | tests/ports/unix/extra_coverage.py.exp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c index 9201dab12..b041141f0 100644 --- a/ports/unix/coverage.c +++ b/ports/unix/coverage.c @@ -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, "abc\n%"); // string ends in middle of format specifier mp_printf(&mp_plat_print, "%%\n"); // literal % character + mp_printf(&mp_plat_print, ".%-3s.\n", "a"); // left adjust } // GC diff --git a/tests/ports/unix/extra_coverage.py.exp b/tests/ports/unix/extra_coverage.py.exp index 154916822..3775036bb 100644 --- a/tests/ports/unix/extra_coverage.py.exp +++ b/tests/ports/unix/extra_coverage.py.exp @@ -14,6 +14,7 @@ false true 80000000 abc % +.a . # GC 0 0 |
