MCPcopy Create free account
hub / github.com/cwida/ALP / ALP_ASSERT

Function ALP_ASSERT

test/test_alp_sample.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace test {
14template <typename T>
15void ALP_ASSERT(T original_val, T decoded_val) {
16 if (original_val == 0.0 && std::signbit(original_val)) {
17 ASSERT_EQ(decoded_val, 0.0);
18 ASSERT_TRUE(std::signbit(decoded_val));
19 } else if (std::isnan(original_val)) {
20 ASSERT_TRUE(std::isnan(decoded_val));
21 } else {
22 ASSERT_EQ(original_val, decoded_val);
23 }
24}
25
26} // namespace test
27class alp_test : public ::testing::Test {

Callers 1

test_columnMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected