| 154 | } |
| 155 | |
| 156 | void ExpressionParserTest::testifCondition() { |
| 157 | auto fnct = getFunction3(QStringLiteral("if")); |
| 158 | QVERIFY(fnct); |
| 159 | |
| 160 | QCOMPARE(fnct(1, 1, 5), 1); |
| 161 | QCOMPARE(fnct(0, 1, 5), 5); |
| 162 | |
| 163 | QCOMPARE(fnct(1.1, 1, 5), 1); |
| 164 | QCOMPARE(fnct(-1, 1, 5), 1); |
| 165 | } |
| 166 | void ExpressionParserTest::testandFunction() { |
| 167 | auto fnct = getFunction2(QStringLiteral("and")); |
| 168 | QVERIFY(fnct); |
nothing calls this directly
no test coverage detected