Skip to content

Commit

Permalink
bugfix title
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Aug 4, 2024
1 parent 738e9cd commit 483dd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ end
function _testset_implementations_inner(title, modules::Union{Expr,Vector}, code::Expr)
vars = Dict{Symbol,Symbol}()
code1 = _quasiquote!(code, vars)
title1 = esc(title)
modules1 = modules isa Expr ? modules.args : modules
testsets = Expr(:block)

Expand All @@ -89,7 +88,8 @@ 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
push!(expr.args, :(@testset "$title $mod" $code1))
label = title == "" ? "$mod" : "$title: $mod"
push!(expr.args, :(@testset $label $code1))
push!(testsets.args, expr)
end

Expand Down

0 comments on commit 483dd65

Please sign in to comment.