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

Method testbetweenIncluded

tests/backend/gsl/ExpressionParserTest.cpp:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void ExpressionParserTest::testbetweenIncluded() {
212 auto fnct = getFunction3(QStringLiteral("between_inc"));
213 QVERIFY(fnct);
214
215 QCOMPARE(fnct(0.99, 1, 5), 0);
216 QCOMPARE(fnct(1, 1, 5), 1);
217 QCOMPARE(fnct(2, 1, 5), 1);
218 QCOMPARE(fnct(5, 1, 5), 1);
219 QCOMPARE(fnct(5.11, 1, 5), 0);
220}
221void ExpressionParserTest::testoutsideIncluded() {
222 auto fnct = getFunction3(QStringLiteral("outside_inc"));
223 QVERIFY(fnct);

Callers

nothing calls this directly

Calls 1

getFunction3Function · 0.85

Tested by

no test coverage detected