File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ void TestQgsGML::testFromURL()
120
120
QCOMPARE ( featureMaps.size (), 1 );
121
121
QCOMPARE ( gmlParser.idsMap ().size (), 1 );
122
122
QCOMPARE ( gmlParser.crs ().authid (), QString ( " EPSG:27700" ) );
123
- QCOMPARE ( featureMaps[0 ]->attribute ( QStringLiteral ( " intfield" ) ), 1 );
123
+ QCOMPARE ( featureMaps[0 ]->attribute ( QStringLiteral ( " intfield" ) ). toInt () , 1 );
124
124
QVERIFY ( featureMaps[0 ]->attribute ( QStringLiteral ( " nillablefield" ) ).isNull ( ) );
125
125
delete featureMaps[ 0 ];
126
126
}
@@ -140,7 +140,7 @@ void TestQgsGML::testFromByteArray()
140
140
QMap<QgsFeatureId, QString > idsMap = gmlParser.idsMap ();
141
141
QVERIFY ( idsMap.constFind ( 0 ) != idsMap.constEnd () );
142
142
QCOMPARE ( idsMap[ 0 ], QString ( " mytypename.1" ) );
143
- QCOMPARE ( featureMaps[0 ]->attribute ( QStringLiteral ( " intfield" ) ), 1 );
143
+ QCOMPARE ( featureMaps[0 ]->attribute ( QStringLiteral ( " intfield" ) ). toInt () , 1 );
144
144
QVERIFY ( featureMaps[0 ]->attribute ( QStringLiteral ( " nillablefield" ) ).isNull ( ) );
145
145
delete featureMaps[ 0 ];
146
146
}
You can’t perform that action at this time.
0 commit comments