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

Method testgreaterThan

tests/backend/gsl/ExpressionParserTest.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void ExpressionParserTest::testgreaterThan() {
101 auto fnct = getFunction2(QStringLiteral("greaterThan"));
102 QVERIFY(fnct);
103
104 QCOMPARE(fnct(1, 5), 0);
105 QCOMPARE(fnct(4.99, 5), 0);
106 QCOMPARE(fnct(5, 5), 0);
107 QCOMPARE(fnct(5.000001, 5), 1);
108 QCOMPARE(fnct(10, 5), 1);
109 QCOMPARE(fnct(0, -0), 0);
110}
111void ExpressionParserTest::testgreaterEqualThan() {
112 auto fnct = getFunction2(QStringLiteral("greaterEqualThan"));
113 QVERIFY(fnct);

Callers

nothing calls this directly

Calls 1

getFunction2Function · 0.85

Tested by

no test coverage detected