| 239 | QCOMPARE(fnct(5.11, 1, 5), 0); |
| 240 | } |
| 241 | void ExpressionParserTest::testoutside() { |
| 242 | auto fnct = getFunction3(QStringLiteral("outside")); |
| 243 | QVERIFY(fnct); |
| 244 | |
| 245 | QCOMPARE(fnct(0.99, 1, 5), 1); |
| 246 | QCOMPARE(fnct(1, 1, 5), 0); |
| 247 | QCOMPARE(fnct(2, 1, 5), 0); |
| 248 | QCOMPARE(fnct(5, 1, 5), 0); |
| 249 | QCOMPARE(fnct(5.11, 1, 5), 1); |
| 250 | } |
| 251 | void ExpressionParserTest::testequalEpsilon() { |
| 252 | auto fnct = getFunction3(QStringLiteral("equalE")); |
| 253 | QVERIFY(fnct); |
nothing calls this directly
no test coverage detected