Skip to content

Commit

Permalink
Merge #900
Browse files Browse the repository at this point in the history
900: Add and fix some Aqua tests r=charleskawczynski a=charleskawczynski

This is a peel off from #896, which first adds and tackles the unbound type parameters

Co-authored-by: Charles Kawczynski <[email protected]>
  • Loading branch information
bors[bot] and charleskawczynski authored Oct 5, 2022
2 parents 23bd6d8 + 2153404 commit 03814a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TurbulenceConvection/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function FixedSurfaceCoeffs(
ch::FloatOrFunc{FT},
cm::FloatOrFunc{FT},
kwargs...,
) where {FT, FVT}
) where {FT}
TS = typeof(Tsurface)
QS = typeof(qsurface)
CH = typeof(ch)
Expand All @@ -399,7 +399,7 @@ function MoninObukhovSurface(
Tsurface::FloatOrFunc{FT},
qsurface::FloatOrFunc{FT},
kwargs...,
) where {FT, FVT}
) where {FT}
TS = typeof(Tsurface)
QS = typeof(qsurface)
return MoninObukhovSurface{FT, TS, QS}(; Tsurface, qsurface, kwargs...)
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
ArtifactWrappers = "a14bc488-3040-4b00-9dc1-f6467924858a"
AtmosphericProfilesLibrary = "86bc3604-9858-485a-bdbe-831ec50de11d"
Expand Down
10 changes: 10 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ group = get(ENV, "TEST_GROUP", :all) |> Symbol
end
end

using Test
import ClimaAtmos
using Aqua

@testset "Aqua tests - unbound args" begin
# This tests that we don't accidentally run into
# https://github.com/JuliaLang/julia/issues/29393
Aqua.test_unbound_args(ClimaAtmos)
end

nothing

0 comments on commit 03814a4

Please sign in to comment.