mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Add zero test case
This commit is contained in:
parent
9da3ba383e
commit
e629f8bdb3
@ -706,6 +706,10 @@ void TestQgsField::convertCompatible()
|
||||
QCOMPARE( stringDouble.type(), QVariant::Double );
|
||||
QCOMPARE( stringDouble, QVariant( 1223456.012345 ) );
|
||||
|
||||
// Test 0 on int fields
|
||||
intField = QgsField( QStringLiteral( "int" ), QVariant::Int, QStringLiteral( "Integer" ), 10 );
|
||||
QVariant vZero { 0 };
|
||||
QVERIFY( intField.convertCompatible( vZero ) );
|
||||
}
|
||||
|
||||
void TestQgsField::dataStream()
|
||||
|
Loading…
x
Reference in New Issue
Block a user