6#define CATCH_CONFIG_RUNNER
8#include <catch2/catch_amalgamated.hpp>
16 const float has = FloatTypes::float32_IEEE11073_to_IEEE754(raw);
24 const std::string has_str = has.
toString();
27 REQUIRE_MSG(msg, has_str.length() == expStr.length());
31TEST_CASE(
"Datatype IEEE11073 Test 01",
"[datatype][IEEE11073]" ) {
44 const uint8_t input[] = { 0xE4, 0x07, 0x04, 0x04, 0x0B, 0x1A, 0x00 };
49 const uint8_t input[] = { 0xE4, 0x07, 0x04, 0x04, 0x0B, 0x2C, 0x00 };
#define REQUIRE_EPSI_MSG(m, a, b)
#define REQUIRE_MSG(MSG,...)
std::string toString() const
std::string to_string(const alphabet &v) noexcept
TEST_CASE("Datatype IEEE11073 Test 01", "[datatype][IEEE11073]")
static void test_AbsoluteTime_IEEE11073(const std::string &msg, const uint8_t *data_le, const int size, const std::string &expStr)
static void test_float32_IEEE11073_to_IEEE754(const std::string &msg, const uint32_t raw, const float expFloat)