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

Method bigIntMinimum

tests/backend/Column/ColumnTest.cpp:102–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void ColumnTest::bigIntMinimum() {
103 Column c(QStringLiteral("BigInt column"), Column::ColumnMode::BigInt);
104 c.setBigInts({-1, 2, 5});
105 QCOMPARE(c.properties(), Column::Properties::MonotonicIncreasing);
106 QCOMPARE(c.minimum(0, 2), -1);
107 QCOMPARE(c.minimum(1, 2), 2);
108
109 c.setBigInts({-1, -3, -4});
110 QCOMPARE(c.properties(), Column::Properties::MonotonicDecreasing);
111 QCOMPARE(c.minimum(0, 2), -4);
112 QCOMPARE(c.minimum(1, 2), -4);
113
114 c.setBigInts({-1, 2, -4});
115 QCOMPARE(c.properties(), Column::Properties::NonMonotonic);
116 QCOMPARE(c.minimum(0, 2), -4);
117 QCOMPARE(c.minimum(0, 1), -1);
118}
119
120void ColumnTest::bigIntMaximum() {
121 Column c(QStringLiteral("BigInt column"), Column::ColumnMode::BigInt);

Callers

nothing calls this directly

Calls 3

setBigIntsMethod · 0.80
propertiesMethod · 0.45
minimumMethod · 0.45

Tested by

no test coverage detected