Index: tests/MathTest.cpp |
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp |
index 1dd8223091e5914686caf3b6f50f31fff4abdbb2..41a4104bd4a7fea4cdae7b044fb7b607d042f083 100644 |
--- a/tests/MathTest.cpp |
+++ b/tests/MathTest.cpp |
@@ -534,6 +534,12 @@ DEF_TEST(Math, reporter) { |
REPORTER_ASSERT(reporter, result == 3); |
} |
+ { |
+ REPORTER_ASSERT(reporter, (SkFixedRoundToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5); |
+ REPORTER_ASSERT(reporter, (SkFixedFloorToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5); |
+ REPORTER_ASSERT(reporter, (SkFixedCeilToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5); |
+ } |
+ |
unittest_fastfloat(reporter); |
unittest_isfinite(reporter); |
unittest_half(reporter); |