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

Method testLog2

tests/backend/gsl/ExpressionParserTest.cpp:673–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671//}
672
673void ExpressionParserTest::testLog2() {
674 auto fnct = getFunction1(QStringLiteral("log2"));
675 QVERIFY(fnct);
676
677 QCOMPARE(fnct(2), 1.);
678 QCOMPARE(fnct(10), 3.32192809489);
679}
680
681void ExpressionParserTest::testPolarCircle() {
682 auto* parser = ExpressionParser::getInstance();

Callers

nothing calls this directly

Calls 1

getFunction1Function · 0.85

Tested by

no test coverage detected