aports/testing/libmygpo-qt/fix-tests.patch
2021-11-21 16:29:57 +00:00

21 lines
904 B
Diff

Patch tests
---
tests/JsonCreatorTest.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/JsonCreatorTest.cpp b/tests/JsonCreatorTest.cpp
index feb03d5..9042cac 100644
--- a/tests/JsonCreatorTest.cpp
+++ b/tests/JsonCreatorTest.cpp
@@ -100,7 +100,7 @@ void JsonCreatorTest::testSaveSettingsToJSON()
output = JsonCreator::saveSettingsToJSON(set, remove);
QString outString2 = QString::fromLatin1( output ).replace( QLatin1String(" "), QLatin1String("") );
- QString expected2( QLatin1String( "{\"remove\":[\"setting1\",\"setting2\"],\"set\":{\"setting4\":\"stringvalue\",\"setting5\":\"1998-01-01T00:01:02\",\"setting6\":4}}" ) );
+ QString expected2( QLatin1String( "{\"remove\":[\"setting1\",\"setting2\"],\"set\":{\"setting4\":\"stringvalue\",\"setting5\":\"1998-01-01T00:01:02.000\",\"setting6\":4}}" ) );
QCOMPARE( outString2, expected2 );
--
2.32.0