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

Method testgreaterEqualThan

tests/backend/gsl/ExpressionParserTest.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 QCOMPARE(fnct(0, -0), 0);
110}
111void ExpressionParserTest::testgreaterEqualThan() {
112 auto fnct = getFunction2(QStringLiteral("greaterEqualThan"));
113 QVERIFY(fnct);
114
115 QCOMPARE(fnct(1, 5), 0);
116 QCOMPARE(fnct(4.99, 5), 0);
117 QCOMPARE(fnct(5, 5), 1);
118 QCOMPARE(fnct(5.000001, 5), 1);
119 QCOMPARE(fnct(10, 5), 1);
120 QCOMPARE(fnct(0, -0), 1);
121}
122void ExpressionParserTest::testlessThan() {
123 auto fnct = getFunction2(QStringLiteral("lessThan"));
124 QVERIFY(fnct);

Callers

nothing calls this directly

Calls 1

getFunction2Function · 0.85

Tested by

no test coverage detected