Skip to content

Commit

Permalink
check AggregateExpr type
Browse files Browse the repository at this point in the history
  • Loading branch information
ullingerc committed Nov 12, 2024
1 parent 091806e commit 428aa29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/SparqlAntlrParserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,8 @@ ::testing::Matcher<const SparqlExpression::Ptr&> matchAggregateWithoutChild(

using enum SparqlExpression::AggregateStatus;
auto aggregateStatus = distinct ? DistinctAggregate : NonDistinctAggregate;
return Pointee(AD_PROPERTY(Exp, isAggregate, Eq(aggregateStatus)));
return Pointee(AllOf(AD_PROPERTY(Exp, isAggregate, Eq(aggregateStatus)),
WhenDynamicCastTo<const AggregateExpr&>(testing::_)));
}
} // namespace aggregateTestHelpers

Expand Down

0 comments on commit 428aa29

Please sign in to comment.