We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 250b24f commit 0b88a9fCopy full SHA for 0b88a9f
1 file changed
ports/unix/coverage.c
@@ -152,7 +152,11 @@ STATIC mp_obj_t extra_coverage(void) {
152
mp_printf(&mp_plat_print, "%.2s %.3s\n", "abc", "abc"); // fixed string precision
153
mp_printf(&mp_plat_print, "%.*s\n", -1, "abc"); // negative string precision
154
mp_printf(&mp_plat_print, "%b %b\n", 0, 1); // bools
155
+ #ifndef NDEBUG
156
mp_printf(&mp_plat_print, "%s\n", NULL); // null string
157
+ #else
158
+ mp_printf(&mp_plat_print, "(null)\n"); // without debugging mp_printf won't check for null
159
+ #endif
160
mp_printf(&mp_plat_print, "%d\n", 0x80000000); // should print signed
161
mp_printf(&mp_plat_print, "%u\n", 0x80000000); // should print unsigned
162
mp_printf(&mp_plat_print, "%x\n", 0x80000000); // should print unsigned
0 commit comments