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

Method testoutside

tests/backend/gsl/ExpressionParserTest.cpp:241–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 QCOMPARE(fnct(5.11, 1, 5), 0);
240}
241void ExpressionParserTest::testoutside() {
242 auto fnct = getFunction3(QStringLiteral("outside"));
243 QVERIFY(fnct);
244
245 QCOMPARE(fnct(0.99, 1, 5), 1);
246 QCOMPARE(fnct(1, 1, 5), 0);
247 QCOMPARE(fnct(2, 1, 5), 0);
248 QCOMPARE(fnct(5, 1, 5), 0);
249 QCOMPARE(fnct(5.11, 1, 5), 1);
250}
251void ExpressionParserTest::testequalEpsilon() {
252 auto fnct = getFunction3(QStringLiteral("equalE"));
253 QVERIFY(fnct);

Callers

nothing calls this directly

Calls 1

getFunction3Function · 0.85

Tested by

no test coverage detected