@@ -89,7 +89,7 @@ class TestQgsJsonUtils : public QObject
89
89
90
90
void testExportAttributesJson_data ()
91
91
{
92
- QTest::addColumn<JsonAlgs>( " JsonAlgs " );
92
+ QTest::addColumn<JsonAlgs>( " jsonAlg " );
93
93
QTest::newRow ( " Use json" ) << JsonAlgs::Json;
94
94
QTest::newRow ( " Use old string concat" ) << JsonAlgs::String;
95
95
}
@@ -133,10 +133,10 @@ class TestQgsJsonUtils : public QObject
133
133
QgsJsonExporter exporter { &vl };
134
134
135
135
const auto expectedJson { QStringLiteral ( " {\" bbox\" :[[1.12,1.12,5.45,5.33]],\" geometry\" :{\" coordinates\" :"
136
- " [[[1.12,1.34],[5.45,1.12],[5.34,5.33],[1.56,5.2],[1.12,1.34]],"
137
- " [[2.0,2.0],[3.0,2.0],[3.0,3.0],[2.0,3.0],[2.0,2.0]]],\" type\" :\" Polygon\" }"
138
- " ,\" id\" :0,\" properties\" :{\" flddbl\" :2.0,\" fldint\" :1,\" fldtxt\" :\" a value\" }"
139
- " ,\" type\" :\" Feature\" }" ) };
136
+ " [[[1.12,1.34],[5.45,1.12],[5.34,5.33],[1.56,5.2],[1.12,1.34]],"
137
+ " [[2.0,2.0],[3.0,2.0],[3.0,3.0],[2.0,3.0],[2.0,2.0]]],\" type\" :\" Polygon\" }"
138
+ " ,\" id\" :0,\" properties\" :{\" flddbl\" :2.0,\" fldint\" :1,\" fldtxt\" :\" a value\" }"
139
+ " ,\" type\" :\" Feature\" }" ) };
140
140
141
141
const auto j { exporter.exportFeatureToJsonObject ( feature ) };
142
142
QCOMPARE ( QString::fromStdString ( j.dump () ), expectedJson );
0 commit comments