| 174 | QCOMPARE(fnct(2, 5), 1); |
| 175 | } |
| 176 | void ExpressionParserTest::testorFunction() { |
| 177 | auto fnct = getFunction2(QStringLiteral("or")); |
| 178 | QVERIFY(fnct); |
| 179 | |
| 180 | QCOMPARE(fnct(1, 1), 1); |
| 181 | QCOMPARE(fnct(0, 1), 1); |
| 182 | QCOMPARE(fnct(1, 0), 1); |
| 183 | QCOMPARE(fnct(0, 0), 0); |
| 184 | QCOMPARE(fnct(2, 5), 1); |
| 185 | QCOMPARE(fnct(0, 2.3345), 1); |
| 186 | } |
| 187 | void ExpressionParserTest::testxorFunction() { |
| 188 | auto fnct = getFunction2(QStringLiteral("xor")); |
| 189 | QVERIFY(fnct); |
nothing calls this directly
no test coverage detected