TestVariable.cpp
20 lines
| 349 B
| text/x-c
|
CppLexer
r0 | #include <QObject> | |||
#include <QtTest> | ||||
r62 | #include <Variable/Variable2.h> | |||
r0 | #include <memory> | |||
r62 | class TestVariable : public QObject | |||
{ | ||||
Q_OBJECT | ||||
r0 | ||||
private slots: | ||||
r62 | void initTestCase() {} | |||
void type_matches_TS_type() | ||||
{ | ||||
Variable2 v("none", {}); | ||||
QVERIFY(v.type() == DataSeriesType::NONE); | ||||
} | ||||
r0 | }; | |||
QTEST_MAIN(TestVariable) | ||||
#include "TestVariable.moc" | ||||