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

Method testParserMaxima02

tests/notebook/NotebookTest.cpp:46–57  ·  view source on GitHub ↗

! read an array of strings */

Source from the content-addressed store, hash-verified

44 read an array of strings
45*/
46void NotebookTest::testParserMaxima02() {
47 QString input = QStringLiteral("[\"a\", \"b\"]");
48 VariableParser parser(QStringLiteral("Maxima"), input);
49
50 QCOMPARE(parser.isParsed(), true);
51 QCOMPARE(parser.dataType(), AbstractColumn::ColumnMode::Text);
52
53 const auto values = parser.text();
54 QCOMPARE(values.size(), 2);
55 // QCOMPARE(values.at(0), QStringLiteral("a"));
56 // QCOMPARE(values.at(1), QStringLiteral("b"));
57}
58
59//**********************************************************
60//************************* Python *************************

Callers

nothing calls this directly

Calls 4

isParsedMethod · 0.80
dataTypeMethod · 0.45
textMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected