Don't Q_ASSERT statements with side effects
Fixes most test failures when run against a release build. While at it, clean up the code to share the common QJsonDocument loading logic.
Because QVERIFY does 'return;' we wrap it in an IIFE.
Fixes most test failures when run against a release build. While at it, clean up the code to share the common QJsonDocument loading logic.
Because QVERIFY does 'return;' we wrap it in an IIFE.