2 #include <gtest/gtest.h> 20 0.0, 10.0, 15642.1, -50.2, 0.0001, -0.321,
21 123456.789, -987.654321, 3.4e38, -3.4e38,
36 EXPECT_FLOAT_EQ(
cases[i], ret);
41 int main(
int argc,
char **argv)
43 testing::InitGoogleTest(&argc, argv);
44 return RUN_ALL_TESTS();
static int serializeAvrFloat64(unsigned char *outbuffer, const float f)
This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messa...
static const double cases[]
static const int num_cases
TEST_F(TestFloat64, testRoundTrip)
int main(int argc, char **argv)
static int deserializeAvrFloat64(const unsigned char *inbuffer, float *f)
This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand mes...