Lines Matching defs:expected
288 static le_bool compareResults(const char *testID, TestResult *expected, TestResult *actual)
293 if (actual->glyphCount != expected->glyphCount) {
294 log_err("Test %s: incorrect glyph count: expected %d, got %d\n",
295 testID, expected->glyphCount, actual->glyphCount);
300 if (actual->glyphs[i] != expected->glyphs[i]) {
301 log_err("Test %s: incorrect id for glyph %d: expected %4X, got %4X\n",
302 testID, i, expected->glyphs[i], actual->glyphs[i]);
308 if (actual->indices[i] != expected->indices[i]) {
309 log_err("Test %s: incorrect index for glyph %d: expected %8X, got %8X\n",
310 testID, i, expected->indices[i], actual->indices[i]);
316 double xError = uprv_fabs(actual->positions[i * 2] - expected->positions[i * 2]);
317 double yError = uprv_fabs(actual->positions[i * 2 + 1] - expected->positions[i * 2 + 1]);
320 log_err("Test %s: incorrect x position for glyph %d: expected %f, got %f\n",
321 testID, i, expected->positions[i * 2], actual->positions[i * 2]);
330 log_err("Test %s: incorrect y position for glyph %d: expected %f, got %f\n",
331 testID, i, expected->positions[i * 2 + 1], actual->positions[i * 2 + 1]);
364 log_info("The expected version string is \"%s\"\n", testVersionString);
450 TestResult *expected)
484 compareResults(testID, expected, &actual);
512 * that we get the expected number of runs per line and that the line breaks are where
685 log_err("Bad glyph to char index for glyph %d on line %d: expected %d, got %d\n",
716 log_err("Bad minIndex for run %d on line %d: expected %d, got %d\n",