Skip to content

Commit

Permalink
fix #39068 : geometry_overlays's limit parameter not working as expec…
Browse files Browse the repository at this point in the history
…ted - test
  • Loading branch information
olivierdalang authored and nyalldawson committed Oct 21, 2020
1 parent 4975965 commit dd4af80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/core/testqgsoverlayexpression.cpp
Expand Up @@ -222,6 +222,10 @@ void TestQgsOverlayExpression::testOverlayExpression_data()

QTest::newRow( "nearest limited filtered" ) << "overlay_nearest('rectangles',id,id!=2,limit:=2)" << "POINT(-135 38)" << QVariantList { 1, 3 };
QTest::newRow( "nearest limited filtered [cached]" ) << "overlay_nearest('rectangles',id,id!=2,limit:=2,cache:=true)" << "POINT(-135 38)" << QVariantList { 1, 3 };

// specific test for issue #39068
QTest::newRow( "intersects get ids limit 2 #39068" ) << "overlay_intersects('rectangles', id, limit:=2)" << "LINESTRING(-178 52, -133 33, -132 42, -64 46)" << QVariantList { 1, 3 };
QTest::newRow( "intersects get ids limit 2 #39068 [cached]" ) << "overlay_intersects('rectangles', id, limit:=2,cache:=true)" << "LINESTRING(-178 52, -133 33, -132 42, -64 46)" << QVariantList { 1, 3 };
}


Expand Down

0 comments on commit dd4af80

Please sign in to comment.