| 229 | QCOMPARE(fnct(5.11, 1, 5), 1); |
| 230 | } |
| 231 | void ExpressionParserTest::testbetween() { |
| 232 | auto fnct = getFunction3(QStringLiteral("between")); |
| 233 | QVERIFY(fnct); |
| 234 | |
| 235 | QCOMPARE(fnct(0.99, 1, 5), 0); |
| 236 | QCOMPARE(fnct(1, 1, 5), 0); |
| 237 | QCOMPARE(fnct(2, 1, 5), 1); |
| 238 | QCOMPARE(fnct(5, 1, 5), 0); |
| 239 | QCOMPARE(fnct(5.11, 1, 5), 0); |
| 240 | } |
| 241 | void ExpressionParserTest::testoutside() { |
| 242 | auto fnct = getFunction3(QStringLiteral("outside")); |
| 243 | QVERIFY(fnct); |
nothing calls this directly
no test coverage detected