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

Method testoutsideIncluded

tests/backend/gsl/ExpressionParserTest.cpp:221–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 QCOMPARE(fnct(5.11, 1, 5), 0);
220}
221void ExpressionParserTest::testoutsideIncluded() {
222 auto fnct = getFunction3(QStringLiteral("outside_inc"));
223 QVERIFY(fnct);
224
225 QCOMPARE(fnct(0.99, 1, 5), 1);
226 QCOMPARE(fnct(1, 1, 5), 1);
227 QCOMPARE(fnct(2, 1, 5), 0);
228 QCOMPARE(fnct(5, 1, 5), 1);
229 QCOMPARE(fnct(5.11, 1, 5), 1);
230}
231void ExpressionParserTest::testbetween() {
232 auto fnct = getFunction3(QStringLiteral("between"));
233 QVERIFY(fnct);

Callers

nothing calls this directly

Calls 1

getFunction3Function · 0.85

Tested by

no test coverage detected