Lines Matching refs:Reporter
17 static void bool_table_test(skiatest::Reporter* reporter,
20 REPORTER_ASSERT(reporter, a.isZero() != a.nonZero());
22 REPORTER_ASSERT(reporter, !a.isZero() == !table.zero);
23 REPORTER_ASSERT(reporter, !a.isPos() == !table.pos);
24 REPORTER_ASSERT(reporter, !a.isNeg() == !table.neg);
25 REPORTER_ASSERT(reporter, a.getSign() == table.sign);
35 DEF_TEST(Sk64Test, reporter) {
52 REPORTER_ASSERT(reporter, a == b);
53 REPORTER_ASSERT(reporter, a == c);
54 bool_table_test(reporter, a, gBoolTable[kZero_BoolTest]);
58 REPORTER_ASSERT(reporter, a == b);
59 REPORTER_ASSERT(reporter, a.is32() && a.get32() == 5 && !a.is64());
60 bool_table_test(reporter, a, gBoolTable[kPos_BoolTest]);
64 REPORTER_ASSERT(reporter, a == b);
65 REPORTER_ASSERT(reporter, a.is32() && a.get32() == -5 && !a.is64());
66 bool_table_test(reporter, a, gBoolTable[kNeg_BoolTest]);
71 REPORTER_ASSERT(reporter, a != b && b != c && a != c);
72 REPORTER_ASSERT(reporter, !(a == b) && !(a == b) && !(a == b));
73 REPORTER_ASSERT(reporter, a < b && b > a && a <= b && b >= a);
74 REPORTER_ASSERT(reporter, c < a && a > c && c <= a && a >= c);
75 REPORTER_ASSERT(reporter, c < b && b > c && c <= b && b >= c);
88 REPORTER_ASSERT(reporter, a.get32() == aa && b.get32() == bb);
90 REPORTER_ASSERT(reporter, c.get32() == aa + bb);
92 REPORTER_ASSERT(reporter, c.get32() == aa - bb);
94 REPORTER_ASSERT(reporter, c.get32() == aa + bb);
96 REPORTER_ASSERT(reporter, c.get32() == aa - bb);
119 REPORTER_ASSERT(reporter, (a < b) == (aa < bb));
120 REPORTER_ASSERT(reporter, (a <= b) == (aa <= bb));
121 REPORTER_ASSERT(reporter, (a > b) == (aa > bb));
122 REPORTER_ASSERT(reporter, (a >= b) == (aa >= bb));
123 REPORTER_ASSERT(reporter, (a == b) == (aa == bb));
124 REPORTER_ASSERT(reporter, (a != b) == (aa != bb));
127 REPORTER_ASSERT(reporter, asLL(c) == aa + bb);
129 REPORTER_ASSERT(reporter, asLL(c) == aa - bb);
131 REPORTER_ASSERT(reporter, asLL(c) == bb - aa);
133 REPORTER_ASSERT(reporter, asLL(c) == -aa);
137 REPORTER_ASSERT(reporter, asLL(c) == (aa << bits));
139 REPORTER_ASSERT(reporter, asLL(c) == (aa >> bits));
147 REPORTER_ASSERT(reporter, asLL(c) == (tmp >> bits));
151 REPORTER_ASSERT(reporter, asLL(c) == tmp);
169 REPORTER_ASSERT(reporter, check == w);
176 REPORTER_ASSERT(reporter, SkAbs32(diff) <= 1);
198 REPORTER_ASSERT(reporter, SkAbs32(diff) <= 1);