Move test to regexp

This commit is contained in:
Mathieu Pellerin 2025-09-17 13:34:29 +07:00
parent 76f5b050ba
commit 4b3ac09b74

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