| 100 | } |
| 101 | |
| 102 | void 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 | |
| 120 | void ColumnTest::bigIntMaximum() { |
| 121 | Column c(QStringLiteral("BigInt column"), Column::ColumnMode::BigInt); |
nothing calls this directly
no test coverage detected