diff --git a/test/RecursiveApply/recursive_apply.jl b/test/RecursiveApply/recursive_apply.jl index e77c824c73..5e5e2e3b91 100644 --- a/test/RecursiveApply/recursive_apply.jl +++ b/test/RecursiveApply/recursive_apply.jl @@ -2,6 +2,7 @@ using JET using Test using ClimaCore.RecursiveApply +using ClimaCore.Geometry @static if @isdefined(var"@test_opt") # v1.7 and higher @testset "RecursiveApply optimization test" begin @@ -84,3 +85,13 @@ end @inferred RecursiveApply.rmaptype((x, y) -> zero(x), nt, nt) end end + +@testset "NamedTuples and vectors" begin + FT = Float64 + nt = (; a = FT(1), b = FT(2)) + uv = Geometry.UVVector(FT(1), FT(2)) + @test_broken rz = RecursiveApply.rmap(*, nt, uv) + @test_broken typeof(rz) == + NamedTuple{(:a, :b), Tuple{UVVector{FT}, UVVector{FT}}} + @test_broken @inferred RecursiveApply.rmap(*, nt, uv) +end