MCPcopy Create free account
hub / github.com/KDE/labplot / testequal

Method testequal

tests/backend/gsl/ExpressionParserTest.cpp:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 QCOMPARE(fnct(0, -0), 1);
143}
144void 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
156void ExpressionParserTest::testifCondition() {
157 auto fnct = getFunction3(QStringLiteral("if"));

Callers

nothing calls this directly

Calls 1

getFunction2Function · 0.85

Tested by

no test coverage detected