Skip to content

Commit

Permalink
Fix test QCOMPARE
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 9, 2019
1 parent d2a9350 commit 574d40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgsjsonutils.cpp
Expand Up @@ -129,9 +129,9 @@ void TestQgsJsonUtils::testParseJson()
}

// Test empty string: null
QCOMPARE( QString::fromStdString( QgsJsonUtils::jsonFromVariant( QgsJsonUtils::parseJson( QStringLiteral( "" ) ) ).dump() ), "null" );
QCOMPARE( QString::fromStdString( QgsJsonUtils::jsonFromVariant( QgsJsonUtils::parseJson( QStringLiteral( "" ) ) ).dump() ), QString( "null" ) );
// invalid json -> null
QCOMPARE( QString::fromStdString( QgsJsonUtils::jsonFromVariant( QgsJsonUtils::parseJson( QStringLiteral( "invalid json" ) ) ).dump() ), "null" );
QCOMPARE( QString::fromStdString( QgsJsonUtils::jsonFromVariant( QgsJsonUtils::parseJson( QStringLiteral( "invalid json" ) ) ).dump() ), QString( "null" ) );

}

Expand Down

0 comments on commit 574d40a

Please sign in to comment.