From 06d59e1bbef49673a8c22c5829c5a9d1bf15cc59 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Fri, 18 Feb 2022 23:33:24 +0100 Subject: [PATCH] Add test --- test/runtests.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/runtests.jl b/test/runtests.jl index a149f58..0b704f4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -827,6 +827,7 @@ end end @test occursin("```@raw html\n

MD

\n```", markdown) # text/html @test occursin("```\nhello, world\n```", markdown) # stdout/stderr @test occursin("```\n42\n```", markdown) # result over stdout/stderr + @test occursin("```julia\n123+123;\n```", markdown) # no additional `nothing #hide`, fredrikekre/Literate.jl/issues/166#issuecomment-979987878 @test !occursin("246", markdown) # empty output because trailing ; @test !occursin("```\nnothing\n```", markdown) # empty output because nothing as return value @test occursin("```\nhello there\n```", markdown) # nothing as return value, non-empty stdout