| 2 | #include <fpm/math.hpp> |
| 3 | |
| 4 | TEST(classification, fpclassify) |
| 5 | { |
| 6 | using P = fpm::fixed<std::int32_t, std::int64_t, 12>; |
| 7 | EXPECT_EQ(FP_NORMAL, fpclassify(P(1.0))); |
| 8 | EXPECT_EQ(FP_NORMAL, fpclassify(P(-1.0))); |
| 9 | EXPECT_EQ(FP_NORMAL, fpclassify(P(0.5))); |
| 10 | EXPECT_EQ(FP_ZERO, fpclassify(P(0))); |
| 11 | } |
| 12 | |
| 13 | TEST(classification, isfinite) |
| 14 | { |
nothing calls this directly
no test coverage detected