From abd7087cd917513d1800b5b70d1f1ceae6e56550 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Sun, 4 Oct 2020 16:09:01 +0200 Subject: [PATCH] more printing tests --- examples/2d/parameters.jl | 2 +- test/test_examples_2d.jl | 38 ++++++++++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/examples/2d/parameters.jl b/examples/2d/parameters.jl index 8ebbf18b9ab..99d3e1d7ea1 100644 --- a/examples/2d/parameters.jl +++ b/examples/2d/parameters.jl @@ -41,7 +41,7 @@ stepsize_callback = StepsizeCallback(cfl=1.6) save_solution = SaveSolutionCallback(interval=100, save_initial_solution=true, save_final_solution=true, - solution_variables=:primitive) + solution_variables=:conservative) # TODO: Taal, IO # restart_interval = 10 diff --git a/test/test_examples_2d.jl b/test/test_examples_2d.jl index 04f3d3e7994..2e40c96ac61 100644 --- a/test/test_examples_2d.jl +++ b/test/test_examples_2d.jl @@ -89,32 +89,62 @@ end @testset "Displaying components 2D" begin - @test_nowarn include(joinpath(EXAMPLES_DIR, "parameters.jl")) + @test_nowarn include(joinpath(EXAMPLES_DIR, "parameters_amr.jl")) # test both short and long printing formats + @test_nowarn show(mesh); println() @test_nowarn println(mesh) @test_nowarn display(mesh) + @test_nowarn show(equations); println() @test_nowarn println(equations) @test_nowarn display(equations) + @test_nowarn show(solver); println() @test_nowarn println(solver) @test_nowarn display(solver) + @test_nowarn show(solver.basis); println() + @test_nowarn println(solver.basis) + @test_nowarn display(solver.basis) + + @test_nowarn show(solver.mortar); println() + @test_nowarn println(solver.mortar) + @test_nowarn display(solver.mortar) + + @test_nowarn show(semi); println() @test_nowarn println(semi) @test_nowarn display(semi) + @test_nowarn show(summary_callback); println() + @test_nowarn println(summary_callback) + @test_nowarn display(summary_callback) + + @test_nowarn show(amr_indicator); println() + @test_nowarn println(amr_indicator) + @test_nowarn display(amr_indicator) + + @test_nowarn show(amr_callback); println() + @test_nowarn println(amr_callback) + @test_nowarn display(amr_callback) + + @test_nowarn show(stepsize_callback); println() @test_nowarn println(stepsize_callback) @test_nowarn display(stepsize_callback) - @test_nowarn println(analysis_callback) - @test_nowarn display(analysis_callback) - + @test_nowarn show(save_solution); println() @test_nowarn println(save_solution) @test_nowarn display(save_solution) + @test_nowarn show(analysis_callback); println() + @test_nowarn println(analysis_callback) + @test_nowarn display(analysis_callback) + + @test_nowarn show(alive_callback); println() @test_nowarn println(alive_callback) @test_nowarn display(alive_callback) + + @test_nowarn println(callbacks) end