summaryrefslogtreecommitdiff
path: root/ports/unix/coverage.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/coverage.c')
-rw-r--r--ports/unix/coverage.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/ports/unix/coverage.c b/ports/unix/coverage.c
index f071049ed..b7c3d2c25 100644
--- a/ports/unix/coverage.c
+++ b/ports/unix/coverage.c
@@ -612,26 +612,6 @@ static mp_obj_t extra_coverage(void) {
mp_emitter_warning(MP_PASS_CODE_SIZE, "test");
}
- // format float
- {
- mp_printf(&mp_plat_print, "# format float\n");
-
- // format with inadequate buffer size
- char buf[5];
- mp_format_float(1, buf, sizeof(buf), 'g', 0, '+');
- mp_printf(&mp_plat_print, "%s\n", buf);
-
- // format with just enough buffer so that precision must be
- // set from 0 to 1 twice
- char buf2[8];
- mp_format_float(1, buf2, sizeof(buf2), 'g', 0, '+');
- mp_printf(&mp_plat_print, "%s\n", buf2);
-
- // format where precision is trimmed to avoid buffer overflow
- mp_format_float(1, buf2, sizeof(buf2), 'e', 0, '+');
- mp_printf(&mp_plat_print, "%s\n", buf2);
- }
-
// binary
{
mp_printf(&mp_plat_print, "# binary\n");