| 164 | QCOMPARE(fnct(-1, 1, 5), 1); |
| 165 | } |
| 166 | void ExpressionParserTest::testandFunction() { |
| 167 | auto fnct = getFunction2(QStringLiteral("and")); |
| 168 | QVERIFY(fnct); |
| 169 | |
| 170 | QCOMPARE(fnct(1, 1), 1); |
| 171 | QCOMPARE(fnct(0, 1), 0); |
| 172 | QCOMPARE(fnct(1, 0), 0); |
| 173 | QCOMPARE(fnct(0, 0), 0); |
| 174 | QCOMPARE(fnct(2, 5), 1); |
| 175 | } |
| 176 | void ExpressionParserTest::testorFunction() { |
| 177 | auto fnct = getFunction2(QStringLiteral("or")); |
| 178 | QVERIFY(fnct); |
nothing calls this directly
no test coverage detected