| 67 | } |
| 68 | |
| 69 | void ColumnTest::integerMinimum() { |
| 70 | Column c(QStringLiteral("Integer column"), Column::ColumnMode::Integer); |
| 71 | c.setIntegers({-1, 2, 5}); |
| 72 | QCOMPARE(c.properties(), Column::Properties::MonotonicIncreasing); |
| 73 | QCOMPARE(c.minimum(0, 2), -1); |
| 74 | QCOMPARE(c.minimum(1, 2), 2); |
| 75 | |
| 76 | c.setIntegers({-1, -3, -4}); |
| 77 | QCOMPARE(c.properties(), Column::Properties::MonotonicDecreasing); |
| 78 | QCOMPARE(c.minimum(0, 2), -4); |
| 79 | QCOMPARE(c.minimum(1, 2), -4); |
| 80 | |
| 81 | c.setIntegers({-1, 2, -4}); |
| 82 | QCOMPARE(c.properties(), Column::Properties::NonMonotonic); |
| 83 | QCOMPARE(c.minimum(0, 2), -4); |
| 84 | QCOMPARE(c.minimum(0, 1), -1); |
| 85 | } |
| 86 | |
| 87 | void ColumnTest::integerMaximum() { |
| 88 | Column c(QStringLiteral("Integer column"), Column::ColumnMode::Integer); |
nothing calls this directly
no test coverage detected