Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into as/open_polygon_clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Aug 10, 2024
2 parents 26c5713 + e9e024a commit 460409e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,15 @@ function _testset_implementations_inner(title, modules::Union{Expr,Vector}, code
for (var, genkey) in pairs(vars)
push!(expr.args, :($genkey = $GeoInterface.convert($mod, $var)))
end
label = title == "" ? "$mod" : "$title: $mod"
push!(expr.args, :(@testset $label $code1))
# Manually define the testset macrocall and all string interpolation
testset = Expr(
:macrocall,
Symbol("@testset"),
LineNumberNode(@__LINE__, @__FILE__),
Expr(:string, mod, " ", title),
code1
)
push!(expr.args, testset)
push!(testsets.args, expr)
end

Expand Down

0 comments on commit 460409e

Please sign in to comment.