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

Method testFunction1Argument

tests/backend/Parser/ParserTest.cpp:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void ParserTest::testFunction1Argument() {
92 Parsing::Parser parser(false);
93 FuzzyCompare(parser.parse(qPrintable(QStringLiteral("sin(pi)")), "C"), 0., 1.e-15);
94
95 VALUES_EQUAL(parser.parse(qPrintable(QStringLiteral("fabs(-5.324)")), "C"), 5.324);
96}
97
98void ParserTest::testFunction2Arguments() {
99 Parsing::Parser parser(false);

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected