Lines Matching refs:REPORTER_ASSERT
24 REPORTER_ASSERT(reporter, 32 == SkCLZ(0));
25 REPORTER_ASSERT(reporter, 31 == SkCLZ(1));
26 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30));
27 REPORTER_ASSERT(reporter, 1 == SkCLZ((1 << 30) | (1 << 24) | 1));
28 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U));
38 REPORTER_ASSERT(reporter, intri == porta, "mask:%d intri:%d porta:%d", mask, intri, porta);
43 REPORTER_ASSERT(reporter, 32 == SkCTZ(0));
44 REPORTER_ASSERT(reporter, 0 == SkCTZ(1));
45 REPORTER_ASSERT(reporter, 30 == SkCTZ(1 << 30));
46 REPORTER_ASSERT(reporter, 2 == SkCTZ((1 << 30) | (1 << 24) | (1 << 2)));
47 REPORTER_ASSERT(reporter, 0 == SkCTZ(~0U));
57 REPORTER_ASSERT(reporter, intri == porta, "mask:%d intri:%d porta:%d", mask, intri, porta);
175 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f);
183 REPORTER_ASSERT(reporter, !SkScalarIsNaN(inf));
184 REPORTER_ASSERT(reporter, !SkScalarIsNaN(-inf));
185 REPORTER_ASSERT(reporter, !SkScalarIsFinite(inf));
186 REPORTER_ASSERT(reporter, !SkScalarIsFinite(-inf));
188 REPORTER_ASSERT(reporter, SkScalarIsNaN(nan));
189 REPORTER_ASSERT(reporter, !SkScalarIsNaN(big));
190 REPORTER_ASSERT(reporter, !SkScalarIsNaN(-big));
191 REPORTER_ASSERT(reporter, !SkScalarIsNaN(0));
193 REPORTER_ASSERT(reporter, !SkScalarIsFinite(nan));
194 REPORTER_ASSERT(reporter, SkScalarIsFinite(big));
195 REPORTER_ASSERT(reporter, SkScalarIsFinite(-big));
196 REPORTER_ASSERT(reporter, SkScalarIsFinite(0));
208 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(f, gFloats[i]));
220 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(f, largestPositiveHalf.fF));
225 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(f, largestNegativeHalf.fF));
230 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(f, smallestPositiveHalf.fF));
235 REPORTER_ASSERT(reporter, !SkScalarIsFinite(f) );
240 REPORTER_ASSERT(reporter, f == 0.0f );
245 REPORTER_ASSERT(reporter, !SkScalarIsFinite(f) );
250 REPORTER_ASSERT(reporter, SkScalarIsNaN(f) );
264 REPORTER_ASSERT(reporter, relativeError <= maxRelativeError);
274 REPORTER_ASSERT(reporter, relativeError <= maxRelativeError);
284 REPORTER_ASSERT(reporter, relativeError <= maxRelativeError);
290 REPORTER_ASSERT(r, sk_float_nextlog2(-std::numeric_limits<float>::infinity()) == 0);
291 REPORTER_ASSERT(r, sk_float_nextlog2(-std::numeric_limits<float>::max()) == 0);
292 REPORTER_ASSERT(r, sk_float_nextlog2(-1000.0f) == 0);
293 REPORTER_ASSERT(r, sk_float_nextlog2(-0.1f) == 0);
294 REPORTER_ASSERT(r, sk_float_nextlog2(-std::numeric_limits<float>::min()) == 0);
295 REPORTER_ASSERT(r, sk_float_nextlog2(-std::numeric_limits<float>::denorm_min()) == 0);
296 REPORTER_ASSERT(r, sk_float_nextlog2(0.0f) == 0);
297 REPORTER_ASSERT(r, sk_float_nextlog2(std::numeric_limits<float>::denorm_min()) == 0);
298 REPORTER_ASSERT(r, sk_float_nextlog2(std::numeric_limits<float>::min()) == 0);
299 REPORTER_ASSERT(r, sk_float_nextlog2(0.1f) == 0);
300 REPORTER_ASSERT(r, sk_float_nextlog2(1.0f) == 0);
301 REPORTER_ASSERT(r, sk_float_nextlog2(1.1f) == 1);
302 REPORTER_ASSERT(r, sk_float_nextlog2(2.0f) == 1);
303 REPORTER_ASSERT(r, sk_float_nextlog2(2.1f) == 2);
304 REPORTER_ASSERT(r, sk_float_nextlog2(3.0f) == 2);
305 REPORTER_ASSERT(r, sk_float_nextlog2(3.1f) == 2);
306 REPORTER_ASSERT(r, sk_float_nextlog2(4.0f) == 2);
307 REPORTER_ASSERT(r, sk_float_nextlog2(4.1f) == 3);
308 REPORTER_ASSERT(r, sk_float_nextlog2(5.0f) == 3);
309 REPORTER_ASSERT(r, sk_float_nextlog2(5.1f) == 3);
310 REPORTER_ASSERT(r, sk_float_nextlog2(6.0f) == 3);
311 REPORTER_ASSERT(r, sk_float_nextlog2(6.1f) == 3);
312 REPORTER_ASSERT(r, sk_float_nextlog2(7.0f) == 3);
313 REPORTER_ASSERT(r, sk_float_nextlog2(7.1f) == 3);
314 REPORTER_ASSERT(r, sk_float_nextlog2(8.0f) == 3);
315 REPORTER_ASSERT(r, sk_float_nextlog2(8.1f) == 4);
316 REPORTER_ASSERT(r, sk_float_nextlog2(9.0f) == 4);
317 REPORTER_ASSERT(r, sk_float_nextlog2(9.1f) == 4);
318 REPORTER_ASSERT(r, sk_float_nextlog2(std::numeric_limits<float>::max()) == 128);
319 REPORTER_ASSERT(r, sk_float_nextlog2(std::numeric_limits<float>::infinity()) > 0);
320 REPORTER_ASSERT(r, sk_float_nextlog2(std::numeric_limits<float>::quiet_NaN()) >= 0);
325 REPORTER_ASSERT(r, sk_float_nextlog2(pow2) == i);
326 REPORTER_ASSERT(r, sk_float_nextlog2(pow2 + epsilon) == i + 1);
327 REPORTER_ASSERT(r, sk_float_nextlog2(pow2 - epsilon) == i);
342 REPORTER_ASSERT(reporter, iround == round);
343 REPORTER_ASSERT(reporter, itrunc == trunc);
345 REPORTER_ASSERT(reporter, itrunc <= iround);
346 REPORTER_ASSERT(reporter, iround <= a);
347 REPORTER_ASSERT(reporter, iround <= b);
358 REPORTER_ASSERT(reporter, expected_ceiling == webkit_ceiling);
360 REPORTER_ASSERT(reporter, skia_ceiling == webkit_ceiling);
379 REPORTER_ASSERT(reporter,
384 REPORTER_ASSERT(reporter, sk_float_copysign(x, y) == expected);
390 REPORTER_ASSERT(reporter, SkCopySign32(ix, ix) == ix);
391 REPORTER_ASSERT(reporter, SkCopySign32(ix, -ix) == -ix);
392 REPORTER_ASSERT(reporter, SkCopySign32(-ix, ix) == ix);
393 REPORTER_ASSERT(reporter, SkCopySign32(-ix, -ix) == -ix);
396 REPORTER_ASSERT(reporter, SkScalarCopySign(sx, sx) == sx);
397 REPORTER_ASSERT(reporter, SkScalarCopySign(sx, -sx) == -sx);
398 REPORTER_ASSERT(reporter, SkScalarCopySign(-sx, sx) == sx);
399 REPORTER_ASSERT(reporter, SkScalarCopySign(-sx, -sx) == -sx);
413 REPORTER_ASSERT(reporter, !v.setLength(1.0f));
448 REPORTER_ASSERT(reporter, SkScalarIsNaN(x));
468 REPORTER_ASSERT(reporter, result == SK_Fixed1);
470 REPORTER_ASSERT(reporter, result == 1);
472 REPORTER_ASSERT(reporter, result == 3);
476 REPORTER_ASSERT(reporter, (SkFixedRoundToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5);
477 REPORTER_ASSERT(reporter, (SkFixedFloorToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5);
478 REPORTER_ASSERT(reporter, (SkFixedCeilToFixed(-SK_Fixed1 * 10) >> 1) == -SK_Fixed1 * 5);
497 REPORTER_ASSERT(reporter, result != (SkFixed)SK_NaN32);
507 REPORTER_ASSERT(reporter, result == (int32_t)check);
541 REPORTER_ASSERT(reporter, 0x1122 == SkTEndianSwap16<0x2211>::value);
542 REPORTER_ASSERT(reporter, 0x11223344 == SkTEndianSwap32<0x44332211>::value);
543 REPORTER_ASSERT(reporter, 0x1122334455667788ULL == SkTEndianSwap64<0x8877665544332211ULL>::value);
546 REPORTER_ASSERT(reporter, g16[i].fYang == SkEndianSwap16(g16[i].fYin));
549 REPORTER_ASSERT(reporter, g32[i].fYang == SkEndianSwap32(g32[i].fYin));
552 REPORTER_ASSERT(reporter, g64[i].fYang == SkEndianSwap64(g64[i].fYin));
578 REPORTER_ASSERT(r, numer/denom == div);
579 REPORTER_ASSERT(r, numer%denom == mod);
591 REPORTER_ASSERT(r, numer/denom == div);
592 REPORTER_ASSERT(r, numer%denom == mod);
632 REPORTER_ASSERT(r, ans == expectedAns);
685 REPORTER_ASSERT(reporter, r.fExpectedInt == i);
689 REPORTER_ASSERT(reporter, p >= 0 && p <= 100);
711 REPORTER_ASSERT(reporter, r.fExpected64 == i);
735 REPORTER_ASSERT(reporter, r.fExpectedInt == i);
753 REPORTER_ASSERT(r, got == want);
765 REPORTER_ASSERT(r, sk_floats_are_unit(v, 0));
775 REPORTER_ASSERT(r, sk_floats_are_unit(v, N));
777 REPORTER_ASSERT(r, sk_floats_are_unit(v, N));
779 REPORTER_ASSERT(r, sk_floats_are_unit(v, N));
787 REPORTER_ASSERT(r, !sk_floats_are_unit(v, N));
789 REPORTER_ASSERT(r, !sk_floats_are_unit(v, N));