Skip to content

Commit

Permalink
test: Check each summary is computable
Browse files Browse the repository at this point in the history
  • Loading branch information
musoke committed May 10, 2022
1 parent 720b720 commit 4872b9e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ end
include("output.jl")
end

@safetestset "summaries compute" begin
include("summary.jl")
end

@testset "Phase grad Grids" begin
include("phase_gradient.jl")
end
Expand Down
22 changes: 22 additions & 0 deletions test/summary.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Test
using UltraDark

sim_time = 0.0
a = 1.
Δt = 1e-1
g = Grids(1.0, 8)
constants = nothing

for s in [
Summary.WallTime,
Summary.SimulationTime,
Summary.ScaleFactor,
Summary.TimeStep,
Summary.MeanDensity,
Summary.MaxDensity,
Summary.RmsDensityContrast,
Summary.TotalMass,
]

s(sim_time, a, Δt, g, constants)
end

4 comments on commit 4872b9e

@musoke
Copy link
Owner Author

@musoke musoke commented on 4872b9e May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Action not recognized: release

@musoke
Copy link
Owner Author

@musoke musoke commented on 4872b9e May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/60030

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.0 -m "<description of version>" 4872b9e6e27cc9edbbf75cda655210bc190312a2
git push origin v0.6.0

Please sign in to comment.