| 209 | } |
| 210 | |
| 211 | void ExpressionParserTest::testbetweenIncluded() { |
| 212 | auto fnct = getFunction3(QStringLiteral("between_inc")); |
| 213 | QVERIFY(fnct); |
| 214 | |
| 215 | QCOMPARE(fnct(0.99, 1, 5), 0); |
| 216 | QCOMPARE(fnct(1, 1, 5), 1); |
| 217 | QCOMPARE(fnct(2, 1, 5), 1); |
| 218 | QCOMPARE(fnct(5, 1, 5), 1); |
| 219 | QCOMPARE(fnct(5.11, 1, 5), 0); |
| 220 | } |
| 221 | void ExpressionParserTest::testoutsideIncluded() { |
| 222 | auto fnct = getFunction3(QStringLiteral("outside_inc")); |
| 223 | QVERIFY(fnct); |
nothing calls this directly
no test coverage detected