diff --git a/test/docs/runtests.jl b/test/docs/runtests.jl new file mode 100644 index 0000000..79f9f41 --- /dev/null +++ b/test/docs/runtests.jl @@ -0,0 +1,16 @@ +# This file is a part of JuliaFEM. +# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md + +using Test + +const SNIPPET = joinpath(@__DIR__, "..", "..", "docs", "src", "snippets", "minimal_elasticity_quickstart.jl") + +@testset "Documentation snippets" begin + @test isfile(SNIPPET) + include(SNIPPET) + r = minimal_elasticity_quickstart() + @test r.ndofs == 375 + @test r.nnz_stiffness == 19773 +end + +include("readme_example.jl")