summaryrefslogtreecommitdiff
path: root/ports/unix/coverage.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-05-03 23:21:28 +1000
committerDamien George <damien.p.george@gmail.com>2019-05-03 23:21:28 +1000
commit906fb89fd778cb695ba81c871086fe1ce340e681 (patch)
treebfc2cc92e2c10a4292d86dc40b5785011480919a /ports/unix/coverage.c
parentc2bb4519085fff1a30605e3f672635c21a747ed8 (diff)
unix/coverage: Add test for printing literal % character.
Diffstat (limited to 'ports/unix/coverage.c')
-rw-r--r--ports/unix/coverage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c
index 3c121a153..538c32d61 100644
--- a/ports/unix/coverage.c
+++ b/ports/unix/coverage.c
@@ -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