mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-12 17:00:32 +08:00
fixed compile error in unit tests
This commit is contained in:
parent
73bc82724b
commit
1f7356328d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user