Lines Matching full:actual
328 le_bool compareResults(const char *testID, TestResult *expected, TestResult *actual)
331 if (actual->glyphCount != expected->glyphCount) {
333 testID, expected->glyphCount, actual->glyphCount);
339 for (i = 0; i < actual->glyphCount; i += 1) {
340 if (actual->glyphs[i] != expected->glyphs[i]) {
342 testID, i, expected->glyphs[i], actual->glyphs[i]);
347 for (i = 0; i < actual->glyphCount; i += 1) {
348 if (actual->indices[i] != expected->indices[i]) {
350 testID, i, expected->indices[i], actual->indices[i]);
355 for (i = 0; i <= actual->glyphCount; i += 1) {
356 double xError = uprv_fabs(actual->positions[i * 2] - expected->positions[i * 2]);
360 testID, i, expected->positions[i * 2], actual->positions[i * 2]);
364 double yError = uprv_fabs(actual->positions[i * 2 + 1] - expected->positions[i * 2 + 1]);
372 testID, i, expected->positions[i * 2 + 1], actual->positions[i * 2 + 1]);
614 TestResult actual = {0, NULL, NULL, NULL};
697 actual.glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, success);
699 actual.glyphs = NEW_ARRAY(LEGlyphID, actual.glyphCount);
700 actual.indices = NEW_ARRAY(le_int32, actual.glyphCount);
701 actual.positions = NEW_ARRAY(float, actual.glyphCount * 2 + 2);
703 engine->getGlyphs(actual.glyphs, success);
704 engine->getCharIndices(actual.indices, success);
705 engine->getGlyphPositions(actual.positions, success);
707 compareResults(id, &expected, &actual);
709 DELETE_ARRAY(actual.positions);
710 DELETE_ARRAY(actual.indices);
711 DELETE_ARRAY(actual.glyphs);