Skip to content

Commit

Permalink
Skip non-available function on earlier GEOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 11, 2023
1 parent 751c4a9 commit 78b67b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/core/testqgsexpression.cpp
Expand Up @@ -5769,6 +5769,11 @@ class TestQgsExpression: public QObject
const HelpTextHash &functionHelp = QgsExpression::functionHelpTexts();
for ( auto helpIt = functionHelp.constBegin(); helpIt != functionHelp.constEnd(); ++ helpIt )
{
#if GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR<11
if ( helpIt->mName == QLatin1String( "concave_hull" ) )
continue;
#endif

for ( auto variantIt = helpIt->mVariants.constBegin(); variantIt != helpIt->mVariants.constEnd(); ++variantIt )
{
for ( const HelpExample &example : std::as_const( variantIt->mExamples ) )
Expand Down

0 comments on commit 78b67b9

Please sign in to comment.