| 199 | } |
| 200 | |
| 201 | void ExpressionParserTest::testnotFunction() { |
| 202 | auto fnct = getFunction1(QStringLiteral("not")); |
| 203 | QVERIFY(fnct); |
| 204 | |
| 205 | QCOMPARE(fnct(1), 0); |
| 206 | QCOMPARE(fnct(0), 1); |
| 207 | QCOMPARE(fnct(-1), 0); // According to C/C++ standard. -1 is true and !-1 is false |
| 208 | QCOMPARE(fnct(2), 0); |
| 209 | } |
| 210 | |
| 211 | void ExpressionParserTest::testbetweenIncluded() { |
| 212 | auto fnct = getFunction3(QStringLiteral("between_inc")); |
nothing calls this directly
no test coverage detected