Skip to content

Commit 3f46a55

Browse files
committedMay 25, 2019
Fix previous commit
1 parent 31c25e4 commit 3f46a55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎tests/src/core/testqgsjsonutils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class TestQgsJsonUtils : public QObject
8989

9090
void testExportAttributesJson_data()
9191
{
92-
QTest::addColumn<JsonAlgs>( "JsonAlgs" );
92+
QTest::addColumn<JsonAlgs>( "jsonAlg" );
9393
QTest::newRow( "Use json" ) << JsonAlgs::Json;
9494
QTest::newRow( "Use old string concat" ) << JsonAlgs::String;
9595
}
@@ -133,10 +133,10 @@ class TestQgsJsonUtils : public QObject
133133
QgsJsonExporter exporter { &vl };
134134

135135
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\"}" ) };
140140

141141
const auto j { exporter.exportFeatureToJsonObject( feature ) };
142142
QCOMPARE( QString::fromStdString( j.dump() ), expectedJson );

0 commit comments

Comments
 (0)
Please sign in to comment.