@@ -462,7 +462,15 @@ void TestQgsOgcUtils::testExpressionToOgcFilterWFS20()
462
462
qDebug ( " SRSNAME: %s" , srsName.toAscii ().data () );
463
463
qDebug ( " OGC : %s" , doc.toString ( -1 ).toAscii ().data () );
464
464
465
- QCOMPARE ( normalizeXML ( xmlText ), normalizeXML ( doc.toString ( -1 ) ) );
465
+ QString normalizedExpected ( normalizeXML ( xmlText ) );
466
+ QString normalizedGot ( normalizeXML ( doc.toString ( -1 ) ) );
467
+
468
+ if ( normalizedExpected != normalizedGot )
469
+ {
470
+ qDebug ( " Normalized expected: %s" , normalizedExpected.toAscii ().data () );
471
+ qDebug ( " Normalized got: %s" , normalizedGot.toAscii ().data () );
472
+ }
473
+ QCOMPARE ( normalizedExpected, normalizedGot );
466
474
}
467
475
468
476
void TestQgsOgcUtils::testExpressionToOgcFilterWFS20_data ()
@@ -562,7 +570,15 @@ void TestQgsOgcUtils::testSQLStatementToOgcFilter()
562
570
filterVersion == QgsOgcUtils::FILTER_FES_2_0 ? " FES 2.0" : " unknown" );
563
571
qDebug ( " OGC : %s" , doc.toString ( -1 ).toAscii ().data () );
564
572
565
- QCOMPARE ( normalizeXML ( xmlText ), normalizeXML ( doc.toString ( -1 ) ) );
573
+ QString normalizedExpected ( normalizeXML ( xmlText ) );
574
+ QString normalizedGot ( normalizeXML ( doc.toString ( -1 ) ) );
575
+
576
+ if ( normalizedExpected != normalizedGot )
577
+ {
578
+ qDebug ( " Normalized expected: %s" , normalizedExpected.toAscii ().data () );
579
+ qDebug ( " Normalized got: %s" , normalizedGot.toAscii ().data () );
580
+ }
581
+ QCOMPARE ( normalizedExpected, normalizedGot );
566
582
}
567
583
568
584
void TestQgsOgcUtils::testSQLStatementToOgcFilter_data ()
0 commit comments