From 406e5ad6383cec7e8093cde69c19d6e4705a0f3c Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 11 Sep 2024 13:35:07 +0200 Subject: [PATCH] add test --- test/test_visualization.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_visualization.jl b/test/test_visualization.jl index 56d6ff27..8db08b90 100644 --- a/test/test_visualization.jl +++ b/test/test_visualization.jl @@ -5,7 +5,9 @@ using DispersiveShallowWater using Plots @testset "Visualization" begin - trixi_include(@__MODULE__, default_example(), tspan = (0.0, 1.0)) + custom_integral(q, equations) = q[1]^2 + DispersiveShallowWater.pretty_form_utf(::typeof(custom_integral)) = "∫η²" + trixi_include(@__MODULE__, default_example(), tspan = (0.0, 1.0), extra_analysis_integrals = (waterheight_total, custom_integral)) @test_nowarn plot(semi => sol) @test_nowarn plot!(semi => sol, plot_initial = true) @test_nowarn plot(semi, sol, conversion = prim2cons, plot_bathymetry = false)