From e08b0fb0e17f17fb76912577fbefbda57e84a2a0 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 24 Sep 2018 23:54:16 -0400 Subject: [PATCH] test coverage --- unit_tests/test_util.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unit_tests/test_util.cpp b/unit_tests/test_util.cpp index 35c05990bf..0b2db6c995 100644 --- a/unit_tests/test_util.cpp +++ b/unit_tests/test_util.cpp @@ -23,6 +23,7 @@ #include "fl_stack.h" #include "io_pins.h" #include "efiGpio.h" +#include "efilib.h" void testCrc(void) { assertEquals(4, efiRound(4.4, 1)); @@ -405,6 +406,12 @@ void testMisc(void) { // we need a mutable array here assertTrue(strEqual("ab", efiTrim(buff))); + + { + float v = atoff("nan"); + assertTrueM("NaN atoff", cisnan(v)); + } + // assertEquals(true, strEqual("spa3", getPinName(SPARKOUT_3_OUTPUT))); // assertEquals(SPARKOUT_12_OUTPUT, getPinByName("spa12")); }