From 941574013515c1e65ed6eec0ffda3935299b6ab8 Mon Sep 17 00:00:00 2001 From: Nathan Musoke Date: Tue, 16 Apr 2024 18:45:42 -0400 Subject: [PATCH] fixup @extref: Add tests --- test/runtests.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index ba6ca3d..ee1e221 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -220,6 +220,7 @@ end # testset parser content = """ # # [Example](@id example-id) # [foo](@ref), [bar](@ref bbaarr) + # [baz](@extref), [bax](@extref bbaaxx) x = 1 #md # Only markdown # Only markdown #md @@ -580,6 +581,7 @@ end end # [Example](@id example-id) [foo](@ref), [bar](@ref bbaarr) + [baz](@extref), [bax](@extref bbaaxx) ````@example inputfile x = 1 @@ -1027,7 +1029,8 @@ end end """ "source": [ "# Example\\n", - "foo, bar" + "foo, bar\\n", + "baz, bax" ] """, @@ -1263,6 +1266,7 @@ end end notebook = read(joinpath(outdir, "inputfile.ipynb"), String) @test !occursin("# [Example](@id example-id", notebook) @test !occursin("[foo](@ref), [bar](@ref bbaarr)", notebook) + @test !occursin("[baz](@ref), [bax](@ref bbaaxx)", notebook) # name Literate.notebook(inputfile, outdir, name = "foobar", execute = false)