| 11 | namespace ValdiTest { |
| 12 | |
| 13 | TEST(Measure, pointsToPixelsRoundsCorrectly) { |
| 14 | ASSERT_EQ(6, pointsToPixels(2.0f, 3.0f)); |
| 15 | ASSERT_EQ(0, pointsToPixels(0.0f, 2.5f)); |
| 16 | ASSERT_EQ(3, pointsToPixels(1.0f, 2.5f)); |
| 17 | } |
| 18 | |
| 19 | TEST(Measure, pixelsToPointsDividesCorrectly) { |
| 20 | ASSERT_FLOAT_EQ(2.0f, pixelsToPoints(6, 3.0f)); |
nothing calls this directly
no test coverage detected