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

Unified Diff: tests/Sk2xTest.cpp

Issue 1024633003: operator overloads for Sk4x, use them all where possible (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: weird, msvc doesnt like operator~() Created 5 years, 9 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 | « tests/PMFloatTest.cpp ('k') | tests/Sk4xTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Sk2xTest.cpp
diff --git a/tests/Sk2xTest.cpp b/tests/Sk2xTest.cpp
index c0cfef36f1cd3207d72a26f4f6237d9113a93956..4cecc0711ac851d430f13454ad598838bafd9975 100644
--- a/tests/Sk2xTest.cpp
+++ b/tests/Sk2xTest.cpp
@@ -41,10 +41,6 @@ static void test(skiatest::Reporter* r) {
REPORTER_ASSERT(r, vals[0] == 4 && vals[1] == 4);
// Math
- REPORTER_ASSERT(r, eq(a.add(d), 6, 9));
- REPORTER_ASSERT(r, eq(a.subtract(d), 2, -1));
- REPORTER_ASSERT(r, eq(a.multiply(d), 8, 20));
-
REPORTER_ASSERT(r, eq(a + d, 6, 9));
REPORTER_ASSERT(r, eq(a - d, 2, -1));
REPORTER_ASSERT(r, eq(a * d, 8, 20));
@@ -59,7 +55,7 @@ static void test(skiatest::Reporter* r) {
a += d;
a *= d;
a -= d;
- REPORTER_ASSERT(r, eq(a, 10,40));
+ REPORTER_ASSERT(r, eq(a, 10, 40));
}
DEF_TEST(Sk2f, r) { test< float>(r); }
« no previous file with comments | « tests/PMFloatTest.cpp ('k') | tests/Sk4xTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698