fixed compile error in unit tests

This commit is contained in:
jkriege2 2024-01-22 22:02:14 +01:00
parent 73bc82724b
commit 1f7356328d

View File

@ -2,6 +2,16 @@
#include <QtTest>
#include "jkqtcommon/jkqtpcsstools.h"
#ifndef QCOMPARE_EQ
#define QCOMPARE_EQ(A,B) if (!static_cast<bool>((A)==(B))) {qDebug()<<QTest::toString(A)<< "!=" << QTest::toString(B); } QVERIFY((A)==(B))
#endif
#ifndef QVERIFY_THROWS_NO_EXCEPTION
#define QVERIFY_THROWS_NO_EXCEPTION(B) B
#endif
#ifndef QVERIFY_THROWS_EXCEPTION
#define QVERIFY_THROWS_EXCEPTION(type, A) QVERIFY_EXCEPTION_THROWN(A, type)
#endif
namespace QTest {
template<>
char *toString(const JKQTPCSSParser::NumberWithUnit &n)