| 142 | QCOMPARE(fnct(0, -0), 1); |
| 143 | } |
| 144 | void ExpressionParserTest::testequal() { |
| 145 | auto fnct = getFunction2(QStringLiteral("equal")); |
| 146 | QVERIFY(fnct); |
| 147 | |
| 148 | QCOMPARE(fnct(1, 5), 0); |
| 149 | QCOMPARE(fnct(4.99, 5), 0); |
| 150 | QCOMPARE(fnct(5, 5), 1); |
| 151 | QCOMPARE(fnct(5.000001, 0), 0); |
| 152 | QCOMPARE(fnct(10, 5), 0); |
| 153 | QCOMPARE(fnct(0, -0), 1); |
| 154 | } |
| 155 | |
| 156 | void ExpressionParserTest::testifCondition() { |
| 157 | auto fnct = getFunction3(QStringLiteral("if")); |
nothing calls this directly
no test coverage detected