| 34 | VALUES_EQUAL(c2.valueAt(i), result); |
| 35 | |
| 36 | void ColumnTest::doubleMinimum() { |
| 37 | Column c(QStringLiteral("Double column"), Column::ColumnMode::Double); |
| 38 | c.setValues({-1.0, 2.0, 5.0}); |
| 39 | QCOMPARE(c.properties(), Column::Properties::MonotonicIncreasing); |
| 40 | QCOMPARE(c.minimum(0, 2), -1.0); |
| 41 | QCOMPARE(c.minimum(1, 2), 2.0); |
| 42 | |
| 43 | c.setValues({-1.0, -3.0, -4.0}); |
| 44 | QCOMPARE(c.properties(), Column::Properties::MonotonicDecreasing); |
| 45 | QCOMPARE(c.minimum(0, 2), -4.0); |
| 46 | QCOMPARE(c.minimum(1, 2), -4.0); |
| 47 | |
| 48 | c.setValues({-1.0, 2.0, -4.0}); |
| 49 | QCOMPARE(c.properties(), Column::Properties::NonMonotonic); |
| 50 | QCOMPARE(c.minimum(0, 2), -4.0); |
| 51 | QCOMPARE(c.minimum(0, 1), -1.0); |
| 52 | } |
| 53 | |
| 54 | void ColumnTest::doubleMaximum() { |
| 55 | Column c(QStringLiteral("Double column"), Column::ColumnMode::Double); |
nothing calls this directly
no test coverage detected