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

Method testParserMaxima01

tests/notebook/NotebookTest.cpp:30–41  ·  view source on GitHub ↗

! read an array of doubles */

Source from the content-addressed store, hash-verified

28 read an array of doubles
29*/
30void NotebookTest::testParserMaxima01() {
31 QString input = QStringLiteral("[1.0, 2.0]");
32 VariableParser parser(QStringLiteral("maxima"), input);
33
34 QCOMPARE(parser.isParsed(), true);
35 QCOMPARE(parser.dataType(), AbstractColumn::ColumnMode::Double);
36
37 const auto values = parser.doublePrecision();
38 QCOMPARE(values.size(), 2);
39 QCOMPARE(values.at(0), 1.0);
40 QCOMPARE(values.at(1), 2.0);
41}
42
43/*!
44 read an array of strings

Callers

nothing calls this directly

Calls 3

isParsedMethod · 0.80
dataTypeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected