diff options
author | mtklein <mtklein@chromium.org> | 2015-03-20 06:00:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-20 06:00:57 -0700 |
commit | 26bf90e5d63024585a8261b224ea4387079e2751 (patch) | |
tree | daca59ff18e927659eea86be2831d1e584a5ba15 /tests/Sk2xTest.cpp | |
parent | adf9990cb56ca389f37f02ac637496083b3c3cfc (diff) |
operator overloads for Sk4x, use them all where possible
BUG=skia:
NOTRY=true
Review URL: https://codereview.chromium.org/1024633003
Diffstat (limited to 'tests/Sk2xTest.cpp')
-rw-r--r-- | tests/Sk2xTest.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/Sk2xTest.cpp b/tests/Sk2xTest.cpp index c0cfef36f1..4cecc0711a 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); } |