mirror of https://github.com/FOME-Tech/fome-fw.git
std::isnan
This commit is contained in:
parent
09c38796ee
commit
7713071a8f
|
@ -324,11 +324,11 @@ TEST(misc, testMisc) {
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
float v = atoff("nan");
|
float v = atoff("nan");
|
||||||
ASSERT_TRUE(cisnan(v)) << "NaN atoff";
|
ASSERT_TRUE(std::isnan(v)) << "NaN atoff";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
float v = atoff("N");
|
float v = atoff("N");
|
||||||
ASSERT_TRUE(cisnan(v)) << "NaN atoff";
|
ASSERT_TRUE(std::isnan(v)) << "NaN atoff";
|
||||||
}
|
}
|
||||||
|
|
||||||
// ASSERT_EQ(true, strEqual("spa3", getPinName(SPARKOUT_3_OUTPUT)));
|
// ASSERT_EQ(true, strEqual("spa3", getPinName(SPARKOUT_3_OUTPUT)));
|
||||||
|
|
|
@ -157,9 +157,9 @@ static void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPo
|
||||||
ASSERT_FALSE(t->shapeDefinitionError) << "isError";
|
ASSERT_FALSE(t->shapeDefinitionError) << "isError";
|
||||||
|
|
||||||
ASSERT_EQ(synchPointIndex, t->getTriggerWaveformSynchPointIndex()) << "synchPointIndex";
|
ASSERT_EQ(synchPointIndex, t->getTriggerWaveformSynchPointIndex()) << "synchPointIndex";
|
||||||
if (!cisnan(expectedGapRatio)) {
|
if (!std::isnan(expectedGapRatio)) {
|
||||||
assertEqualsM2("actual gap ratio", expectedGapRatio, initState.triggerSyncGapRatio, 0.001);
|
assertEqualsM2("actual gap ratio", expectedGapRatio, initState.triggerSyncGapRatio, 0.001);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void assertREquals(void *expected, void *actual) {
|
static void assertREquals(void *expected, void *actual) {
|
||||||
|
|
Loading…
Reference in New Issue