test coverage
This commit is contained in:
parent
315ae344d8
commit
e08b0fb0e1
|
@ -23,6 +23,7 @@
|
||||||
#include "fl_stack.h"
|
#include "fl_stack.h"
|
||||||
#include "io_pins.h"
|
#include "io_pins.h"
|
||||||
#include "efiGpio.h"
|
#include "efiGpio.h"
|
||||||
|
#include "efilib.h"
|
||||||
|
|
||||||
void testCrc(void) {
|
void testCrc(void) {
|
||||||
assertEquals(4, efiRound(4.4, 1));
|
assertEquals(4, efiRound(4.4, 1));
|
||||||
|
@ -405,6 +406,12 @@ void testMisc(void) {
|
||||||
// we need a mutable array here
|
// we need a mutable array here
|
||||||
assertTrue(strEqual("ab", efiTrim(buff)));
|
assertTrue(strEqual("ab", efiTrim(buff)));
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
float v = atoff("nan");
|
||||||
|
assertTrueM("NaN atoff", cisnan(v));
|
||||||
|
}
|
||||||
|
|
||||||
// assertEquals(true, strEqual("spa3", getPinName(SPARKOUT_3_OUTPUT)));
|
// assertEquals(true, strEqual("spa3", getPinName(SPARKOUT_3_OUTPUT)));
|
||||||
// assertEquals(SPARKOUT_12_OUTPUT, getPinByName("spa12"));
|
// assertEquals(SPARKOUT_12_OUTPUT, getPinByName("spa12"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue