Skip to content
Permalink
Browse files

[refFunctions] add more tests

  • Loading branch information
olivierdalang committed Aug 20, 2020
1 parent 7244f84 commit 68c27a349bce6b11f422954278b54543f75ff75d
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/core/testqgsoverlayexpression.cpp
@@ -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 )

0 comments on commit 68c27a3

Please sign in to comment.
You can’t perform that action at this time.