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()
444 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_transpose()
452 REPORTER_ASSERT(reporter, in test_get_set_double()
456 REPORTER_ASSERT(reporter, in test_get_set_double()
476 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
479 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
482 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
485 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
506 REPORTER_ASSERT(reporter, expected33 == a33); in test_3x3_conversion()
511 REPORTER_ASSERT(reporter, nearly_equal(a44flattened, expected44flattened)); in test_3x3_conversion()
523 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[0], vec3transformed[0])); in test_3x3_conversion()
524 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[1], vec3transformed[1])); in test_3x3_conversion()
525 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[3], vec3transformed[2])); in test_3x3_conversion()
526 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[0], vec4transformed2[0])); in test_3x3_conversion()
527 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[1], vec4transformed2[1])); in test_3x3_conversion()
528 REPORTER_ASSERT(reporter, !nearly_equal_scalar(vec4transformed[2], vec4transformed2[2])); in test_3x3_conversion()
529 REPORTER_ASSERT(reporter, nearly_equal_scalar(vec4transformed[3], vec4transformed2[3])); in test_3x3_conversion()
536 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
539 REPORTER_ASSERT(reporter, !transform.hasPerspective()); in test_has_perspective()
542 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
546 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
550 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
554 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
558 REPORTER_ASSERT(reporter, transform.hasPerspective()); in test_has_perspective()
591 REPORTER_ASSERT(reporter, is_rectilinear(p1, p2, p3, p4)); in empirically_preserves_2d_axis_alignment()
603 REPORTER_ASSERT(reporter, empirically_preserves_2d_axis_alignment(reporter, transform)); in test()
604 REPORTER_ASSERT(reporter, transform.preserves2dAxisAlignment()); in test()
606 REPORTER_ASSERT(reporter, !empirically_preserves_2d_axis_alignment(reporter, transform)); in test()
607 REPORTER_ASSERT(reporter, !transform.preserves2dAxisAlignment()); in test()
783 REPORTER_ASSERT(reporter, sum >= 0); in test_toint()
784 REPORTER_ASSERT(reporter, isum >= 0); in test_toint()
785 REPORTER_ASSERT(reporter, static_cast<SkMScalar>(isum) == SkIntToMScalar(isum)); in test_toint()
798 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
803 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
808 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
813 REPORTER_ASSERT(reporter, mat.invert(NULL)); in DEF_TEST()
816 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
818 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
826 REPORTER_ASSERT(reporter, mat.invert(NULL)); in DEF_TEST()
829 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
837 REPORTER_ASSERT(reporter, mat.invert(NULL)); in DEF_TEST()
840 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
845 REPORTER_ASSERT(reporter, !mat.invert(NULL)); in DEF_TEST()