• Home
  • Raw
  • Download

Lines Matching refs:REPORTER_ASSERT

35     REPORTER_ASSERT(reporter, data[0] == m0);  in assert16()
36 REPORTER_ASSERT(reporter, data[1] == m1); in assert16()
37 REPORTER_ASSERT(reporter, data[2] == m2); in assert16()
38 REPORTER_ASSERT(reporter, data[3] == m3); in assert16()
40 REPORTER_ASSERT(reporter, data[4] == m4); in assert16()
41 REPORTER_ASSERT(reporter, data[5] == m5); in assert16()
42 REPORTER_ASSERT(reporter, data[6] == m6); in assert16()
43 REPORTER_ASSERT(reporter, data[7] == m7); in assert16()
45 REPORTER_ASSERT(reporter, data[8] == m8); in assert16()
46 REPORTER_ASSERT(reporter, data[9] == m9); in assert16()
47 REPORTER_ASSERT(reporter, data[10] == m10); in assert16()
48 REPORTER_ASSERT(reporter, data[11] == m11); in assert16()
50 REPORTER_ASSERT(reporter, data[12] == m12); in assert16()
51 REPORTER_ASSERT(reporter, data[13] == m13); in assert16()
52 REPORTER_ASSERT(reporter, data[14] == m14); in assert16()
53 REPORTER_ASSERT(reporter, data[15] == m15); in assert16()
93 REPORTER_ASSERT(reporter, testMatrix == placeholderMatrix); in test_constructor()
94 REPORTER_ASSERT(reporter, !testMatrix->isIdentity()); in test_constructor()
97REPORTER_ASSERT(reporter, nearly_equal_double(row * col, testMatrix->getDouble(row, col))); in test_constructor()
104 REPORTER_ASSERT(reporter, testMatrix == placeholderMatrix); in test_constructor()
105 REPORTER_ASSERT(reporter, testMatrix->isIdentity()); in test_constructor()
106 REPORTER_ASSERT(reporter, *testMatrix == SkMatrix44::I()); in test_constructor()
111 REPORTER_ASSERT(reporter, scaleMatrix.isScale()); in test_constructor()
113 REPORTER_ASSERT(reporter, testMatrix->isIdentity()); in test_constructor()
114 REPORTER_ASSERT(reporter, *testMatrix == SkMatrix44::I()); in test_constructor()
122 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_translate()
124 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
125 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in test_translate()
126 REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kTranslate_Mask)); in test_translate()
137 REPORTER_ASSERT(reporter, mat == c); in test_translate()
142 REPORTER_ASSERT(reporter, mat == c); in test_translate()
150 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kIdentity_Mask)); in test_scale()
152 REPORTER_ASSERT(reporter, bits_isonly(mat.getType(), SkMatrix44::kScale_Mask)); in test_scale()
153 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in test_scale()
154 REPORTER_ASSERT(reporter, bits_isonly(inverse.getType(), SkMatrix44::kScale_Mask)); in test_scale()
165 REPORTER_ASSERT(reporter, mat == c); in test_scale()
170 REPORTER_ASSERT(reporter, mat == c); in test_scale()
211 REPORTER_ASSERT(reporter, dstA[i] == dstB[i]); in test_map2()
227 REPORTER_ASSERT(reporter, matrix.isIdentity()); in test_gettype()
228 REPORTER_ASSERT(reporter, SkMatrix44::kIdentity_Mask == matrix.getType()); in test_gettype()
234 REPORTER_ASSERT(reporter, matrix.getType() == expectedMask); in test_gettype()
238 REPORTER_ASSERT(reporter, matrix.getType() == expectedMask); in test_gettype()
242 REPORTER_ASSERT(reporter, matrix.getType() == expectedMask); in test_gettype()
245 REPORTER_ASSERT(reporter, matrix.getType() & SkMatrix44::kPerspective_Mask); in test_gettype()
252 REPORTER_ASSERT(reporter, matrix.isIdentity()); in test_gettype()
254 REPORTER_ASSERT(reporter, matrix.isIdentity()); in test_gettype()
256 REPORTER_ASSERT(reporter, matrix.isIdentity()); in test_gettype()
267 REPORTER_ASSERT(reporter, rot3x3.rectStaysRect()); in test_common_angles()
291 REPORTER_ASSERT(reporter, d == c); in test_concat()
295 REPORTER_ASSERT(reporter, 10 == dst[i]); in test_concat()
296 REPORTER_ASSERT(reporter, 12 == dst[i + 4]); in test_concat()
303 REPORTER_ASSERT(reporter, d == c); in test_concat()
307 REPORTER_ASSERT(reporter, 20 == dst[i]); in test_concat()
308 REPORTER_ASSERT(reporter, 22 == dst[i + 4]); in test_concat()
314 REPORTER_ASSERT(reporter, nearly_equal_double(1, a.determinant())); in test_determinant()
316 REPORTER_ASSERT(reporter, nearly_equal_double(2, a.determinant())); in test_determinant()
318 REPORTER_ASSERT(reporter, a.invert(&b)); in test_determinant()
319 REPORTER_ASSERT(reporter, nearly_equal_double(0.5, b.determinant())); in test_determinant()
323 REPORTER_ASSERT(reporter, in test_determinant()
328 REPORTER_ASSERT(reporter, nearly_equal_double(16, d.determinant())); in test_determinant()
332 REPORTER_ASSERT(reporter, nearly_equal_double(32, e.determinant())); in test_determinant()
334 REPORTER_ASSERT(reporter, nearly_equal_double(0, e.determinant())); in test_determinant()
391 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
404 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
415 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
428 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
432 REPORTER_ASSERT(reporter, tinyScale.getType() == SkMatrix44::kScale_Mask); in test_invert()
433 REPORTER_ASSERT(reporter, !tinyScale.invert(nullptr)); in test_invert()
434 REPORTER_ASSERT(reporter, !tinyScale.invert(&inverse)); in test_invert()
438 REPORTER_ASSERT(reporter, tinyScaleTranslate.invert(nullptr)); in test_invert()
440 REPORTER_ASSERT( in test_invert()
443 REPORTER_ASSERT(reporter, !tinyScaleTranslate.invert(nullptr)); in test_invert()
444 REPORTER_ASSERT(reporter, !tinyScaleTranslate.invert(&inverse)); in test_invert()
449 REPORTER_ASSERT(reporter, (tinyScalePerspective.getType() & in test_invert()
452 REPORTER_ASSERT(reporter, !tinyScalePerspective.invert(nullptr)); in test_invert()
453 REPORTER_ASSERT(reporter, !tinyScalePerspective.invert(&inverse)); in test_invert()
469 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_transpose()
477 REPORTER_ASSERT(reporter, in test_get_set_double()
481 REPORTER_ASSERT(reporter, in test_get_set_double()
493 REPORTER_ASSERT(r, 1.0f == mat.getFloat(0, 0)); in test_set_3x3()
494 REPORTER_ASSERT(r, 2.0f == mat.getFloat(0, 1)); in test_set_3x3()
495 REPORTER_ASSERT(r, 3.0f == mat.getFloat(0, 2)); in test_set_3x3()
496 REPORTER_ASSERT(r, 4.0f == mat.getFloat(1, 0)); in test_set_3x3()
497 REPORTER_ASSERT(r, 5.0f == mat.getFloat(1, 1)); in test_set_3x3()
498 REPORTER_ASSERT(r, 6.0f == mat.getFloat(1, 2)); in test_set_3x3()
499 REPORTER_ASSERT(r, 7.0f == mat.getFloat(2, 0)); in test_set_3x3()
500 REPORTER_ASSERT(r, 8.0f == mat.getFloat(2, 1)); in test_set_3x3()
501 REPORTER_ASSERT(r, 9.0f == mat.getFloat(2, 2)); in test_set_3x3()
518 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
521 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
524 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
527 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
548 REPORTER_ASSERT(reporter, expected33 == a33); in test_3x3_conversion()
553 REPORTER_ASSERT(reporter, nearly_equal(a44flattened, expected44flattened)); in test_3x3_conversion()
565 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[0], vec3transformed[0])); in test_3x3_conversion()
566 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[1], vec3transformed[1])); in test_3x3_conversion()
567 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[3], vec3transformed[2])); in test_3x3_conversion()
568 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[0], vec4transformed2[0])); in test_3x3_conversion()
569 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[1], vec4transformed2[1])); in test_3x3_conversion()
570 REPORTER_ASSERT(reporter, !nearly_equal_scalar(vec4transformed[2], vec4transformed2[2])); in test_3x3_conversion()
571 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[3], vec4transformed2[3])); in test_3x3_conversion()
578 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
581 REPORTER_ASSERT(reporter, !transform.hasPerspective()); in test_has_perspective()
584 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
588 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
592 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
596 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
600 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
633 REPORTER_ASSERT(reporter, is_rectilinear(p1, p2, p3, p4)); in empirically_preserves_2d_axis_alignment()
645 REPORTER_ASSERT(reporter, empirically_preserves_2d_axis_alignment(reporter, transform)); in test()
646 REPORTER_ASSERT(reporter, transform.preserves2dAxisAlignment()); in test()
648 REPORTER_ASSERT(reporter, !empirically_preserves_2d_axis_alignment(reporter, transform)); in test()
649 REPORTER_ASSERT(reporter, !transform.preserves2dAxisAlignment()); in test()
825 REPORTER_ASSERT(reporter, sum >= 0); in test_toint()
826 REPORTER_ASSERT(reporter, isum >= 0); in test_toint()
827 REPORTER_ASSERT(reporter, static_cast<SkMScalar>(isum) == SkIntToMScalar(isum)); in test_toint()
840 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
845 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
850 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
855 REPORTER_ASSERT(reporter, mat.invert(nullptr)); in DEF_TEST()
858 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
860 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
869 REPORTER_ASSERT(reporter, mat.invert(nullptr)); in DEF_TEST()
872 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
884 REPORTER_ASSERT(reporter, mat.invert(nullptr)); in DEF_TEST()
887 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
892 REPORTER_ASSERT(reporter, !mat.invert(nullptr)); in DEF_TEST()