Move test to regexp

This commit is contained in:
Mathieu Pellerin 2025-09-17 13:34:29 +07:00 committed by github-actions[bot]
parent 98e9579b3d
commit 8b083d0bfd

View File

@ -2044,7 +2044,7 @@ void TestQgsDxfExport::testExpressionContext()
QCOMPARE( d.writeToFile( &dxfFile, QStringLiteral( "CP1252" ) ), QgsDxfExport::ExportResult::Success );
dxfFile.close();
QString debugInfo;
QVERIFY2( fileContainsText( file, "\\fQGIS Vera Sans|i0|b1;\\H3.81136;Biplane", &debugInfo ), debugInfo.toUtf8().constData() );
QVERIFY2( fileContainsText( file, "REGEX Biplane", &debugInfo ), debugInfo.toUtf8().constData() );
}
bool TestQgsDxfExport::fileContainsText( const QString &path, const QString &text, QString *debugInfo ) const