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

Method testbetween

tests/backend/gsl/ExpressionParserTest.cpp:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 QCOMPARE(fnct(5.11, 1, 5), 1);
230}
231void ExpressionParserTest::testbetween() {
232 auto fnct = getFunction3(QStringLiteral("between"));
233 QVERIFY(fnct);
234
235 QCOMPARE(fnct(0.99, 1, 5), 0);
236 QCOMPARE(fnct(1, 1, 5), 0);
237 QCOMPARE(fnct(2, 1, 5), 1);
238 QCOMPARE(fnct(5, 1, 5), 0);
239 QCOMPARE(fnct(5.11, 1, 5), 0);
240}
241void ExpressionParserTest::testoutside() {
242 auto fnct = getFunction3(QStringLiteral("outside"));
243 QVERIFY(fnct);

Callers

nothing calls this directly

Calls 1

getFunction3Function · 0.85

Tested by

no test coverage detected