Lines Matching refs:reporter

25 DEF_TEST(M44, reporter) {
28 REPORTER_ASSERT(reporter, SkM44(1, 0, 0, 0,
32 REPORTER_ASSERT(reporter, SkM44() == m);
33 REPORTER_ASSERT(reporter, m.invert(&im));
34 REPORTER_ASSERT(reporter, SkM44() == im);
37 REPORTER_ASSERT(reporter, SkM44(1, 0, 0, 3,
44 REPORTER_ASSERT(reporter, SkM44(f[0], f[4], f[ 8], f[12],
51 REPORTER_ASSERT(reporter, t != m);
52 REPORTER_ASSERT(reporter, t.rc(1,0) == m.rc(0,1));
54 REPORTER_ASSERT(reporter, tt == m);
58 REPORTER_ASSERT(reporter, SkM44(f[ 0], f[ 1], f[ 2], f[ 3],
63 REPORTER_ASSERT(reporter, m.invert(&im));
67 REPORTER_ASSERT(reporter, eq(SkM44(), m, 0.0000005f));
68 REPORTER_ASSERT(reporter, SkM44() != m);
71 DEF_TEST(M44_v3, reporter) {
75 REPORTER_ASSERT(reporter, a.lengthSquared() == 1 + 4 + 9);
76 REPORTER_ASSERT(reporter, b.length() == 3);
77 REPORTER_ASSERT(reporter, a.dot(b) == 1 + 4 + 6);
78 REPORTER_ASSERT(reporter, b.dot(a) == 1 + 4 + 6);
79 REPORTER_ASSERT(reporter, (a.cross(b) == SkV3{-2, 1, 0}));
80 REPORTER_ASSERT(reporter, (b.cross(a) == SkV3{ 2, -1, 0}));
90 REPORTER_ASSERT(reporter, (c == SkV3{2, 2, 9}));
92 REPORTER_ASSERT(reporter, (d == SkV4{11, 8, 7, 1}));
95 DEF_TEST(M44_v4, reporter) {
106 REPORTER_ASSERT(reporter, (r0 == SkV4{ 1, 2, 3, 4}));
107 REPORTER_ASSERT(reporter, (r1 == SkV4{ 5, 6, 7, 8}));
108 REPORTER_ASSERT(reporter, (r2 == SkV4{ 9, 10, 11, 12}));
109 REPORTER_ASSERT(reporter, (r3 == SkV4{13, 14, 15, 16}));
111 REPORTER_ASSERT(reporter, SkM44::Rows(r0, r1, r2, r3) == m);
118 REPORTER_ASSERT(reporter, (c0 == SkV4{1, 5, 9, 13}));
119 REPORTER_ASSERT(reporter, (c1 == SkV4{2, 6, 10, 14}));
120 REPORTER_ASSERT(reporter, (c2 == SkV4{3, 7, 11, 15}));
121 REPORTER_ASSERT(reporter, (c3 == SkV4{4, 8, 12, 16}));
123 REPORTER_ASSERT(reporter, SkM44::Cols(c0, c1, c2, c3) == m);
129 REPORTER_ASSERT(reporter, v1 == v2);
131 REPORTER_ASSERT(reporter, (c0 + r0 == SkV4{c0.x+r0.x, c0.y+r0.y, c0.z+r0.z, c0.w+r0.w}));
132 REPORTER_ASSERT(reporter, (c0 - r0 == SkV4{c0.x-r0.x, c0.y-r0.y, c0.z-r0.z, c0.w-r0.w}));
133 REPORTER_ASSERT(reporter, (c0 * r0 == SkV4{c0.x*r0.x, c0.y*r0.y, c0.z*r0.z, c0.w*r0.w}));
136 DEF_TEST(M44_rotate, reporter) {
176 REPORTER_ASSERT(reporter, mx == r.expectedX);
177 REPORTER_ASSERT(reporter, my == r.expectedY);
178 REPORTER_ASSERT(reporter, mz == r.expectedZ);
184 REPORTER_ASSERT(reporter, mx == -r.expectedX);
185 REPORTER_ASSERT(reporter, my == -r.expectedY);
186 REPORTER_ASSERT(reporter, mz == -r.expectedZ);
190 DEF_TEST(M44_rectToRect, reporter) {
205 REPORTER_ASSERT(reporter, mapped.z == 0.f);
206 REPORTER_ASSERT(reporter, mapped.w == 1.f);
210 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual, expected),
216 REPORTER_ASSERT(reporter, actualLow < actualHigh,
254 DEF_TEST(M44_mapRect, reporter) {
257 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fLeft, expected.fLeft, e.fLeft),
259 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fTop, expected.fTop, e.fTop),
261 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fRight, expected.fRight, e.fRight),
263 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(actual.fBottom, expected.fBottom, e.fBottom),
270 REPORTER_ASSERT(reporter, !actual.isEmpty());
293 REPORTER_ASSERT(reporter, actual.fLeft <= x && x <= actual.fRight,
296 REPORTER_ASSERT(reporter, actual.fTop <= y && y <= actual.fBottom,
313 REPORTER_ASSERT(reporter, leftFound || topFound || rightFound || bottomFound);
327 REPORTER_ASSERT(reporter, leftFound && topFound && rightFound && bottomFound);