commit | 0d2c234e447d54110ee080d9f54ab347944393b0 | [log] [tgz] |
---|---|---|
author | liyuqian <liyuqian@google.com> | Wed Jul 13 13:34:46 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jul 13 13:34:46 2016 -0700 |
tree | d3f1195bf3b81eca2a509611bcf51b0b3a754269 | |
parent | 05c73b7ed5b73a55cbecf7f787a35fcc0e84e983 [diff] [blame] |
Fix SkFixedDiv macro Previously, the macro won't pass the unit test that I just added in this CL. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2149733002 Review-Url: https://codereview.chromium.org/2149733002
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp index 23785f7..1dd8223 100644 --- a/tests/MathTest.cpp +++ b/tests/MathTest.cpp
@@ -530,6 +530,8 @@ REPORTER_ASSERT(reporter, result == SK_Fixed1); result = SkFixedDiv(1, SK_Fixed1); REPORTER_ASSERT(reporter, result == 1); + result = SkFixedDiv(10 - 1, SK_Fixed1 * 3); + REPORTER_ASSERT(reporter, result == 3); } unittest_fastfloat(reporter);