Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: tests/MathTest.cpp

Issue 2149733002: Fix SkFixedDiv macro (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/SkFixed.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/MathTest.cpp
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp
index 23785f742d04e164ea5654b35a6e75776d3c9faa..1dd8223091e5914686caf3b6f50f31fff4abdbb2 100644
--- a/tests/MathTest.cpp
+++ b/tests/MathTest.cpp
@@ -530,6 +530,8 @@ DEF_TEST(Math, reporter) {
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);
« no previous file with comments | « include/private/SkFixed.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698