Skip to content

Commit

Permalink
[refFunctions] add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang committed Aug 20, 2020
1 parent 7244f84 commit 68c27a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/testqgsoverlayexpression.cpp
Expand Up @@ -169,6 +169,8 @@ void TestQgsOverlayExpression::testOverlayExpression_data()
QTest::newRow( "disjoint get ids limit 2" ) << "geometry_overlay_disjoint('rectangles',id, limit:=2)" << "LINESTRING(-155 15, -122 55, -84 4)" << QVariantList { 1, 2 };
QTest::newRow( "nearest" ) << "geometry_overlay_nearest('rectangles',id)" << "POINT(-135 38)" << QVariantList { 2 };
QTest::newRow( "nearest filtered" ) << "geometry_overlay_nearest('rectangles',id,id!=2)" << "POINT(-135 38)" << QVariantList { 1 };
QTest::newRow( "nearest limited" ) << "geometry_overlay_nearest('rectangles',id,limit:=2)" << "POINT(-135 38)" << QVariantList { 2, 1 };
QTest::newRow( "nearest limited filtered" ) << "geometry_overlay_nearest('rectangles',id,id!=2,limit:=2)" << "POINT(-135 38)" << QVariantList { 1, 3 };
}
QGSTEST_MAIN( TestQgsOverlayExpression )

Expand Down

0 comments on commit 68c27a3

Please sign in to comment.