| 46 | } // namespace |
| 47 | |
| 48 | UNIT_TEST(round_lround_smoke) |
| 49 | { |
| 50 | TEST_EQUAL(std::round(0.4), 0.0, ()); |
| 51 | TEST_EQUAL(std::round(0.6), 1.0, ()); |
| 52 | TEST_EQUAL(std::round(-0.4), 0.0, ()); |
| 53 | TEST_EQUAL(std::round(-0.6), -1.0, ()); |
| 54 | |
| 55 | TEST_EQUAL(std::lround(0.4), 0l, ()); |
| 56 | TEST_EQUAL(std::lround(0.6), 1l, ()); |
| 57 | TEST_EQUAL(std::lround(-0.4), 0l, ()); |
| 58 | TEST_EQUAL(std::lround(-0.6), -1l, ()); |
| 59 | } |
| 60 | |
| 61 | UNIT_TEST(PowUInt) |
| 62 | { |
nothing calls this directly
no test coverage detected