Browse Source

fix tests

pull/200/head
Fredrik Ekre 2 years ago
parent
commit
5d02038299
No known key found for this signature in database
GPG Key ID: DE82E6D5E364C0A2
  1. 6
      test/runtests.jl

6
test/runtests.jl

@ -110,7 +110,7 @@ end @@ -110,7 +110,7 @@ end
##
## Line 79
# Line 80: Quarto Specific
##| Line 81
##| Line 81
"""
expected_chunks = Chunk[
MDChunk(["" => "Line 1"]),
@ -803,8 +803,8 @@ end end @@ -803,8 +803,8 @@ end end
# flavor = QuartoFlavor()
# execution of Quarto markdown is not allowed
let expected_error = ErrorException("QuartoFlavor does not support argument execute=true!")
@test_throws expected_error Literate.markdown("quarto.jl",flavor=Literate.QuartoFlavor(),execute=true)
let expected_error = ArgumentError("QuartoFlavor does not support argument `execute = true`.")
@test_throws expected_error Literate.markdown("quarto.jl", flavor = Literate.QuartoFlavor(), execute = true)
end
Literate.markdown(inputfile, outdir, flavor = Literate.QuartoFlavor(),execute=false)
markdown = read(joinpath(outdir, "inputfile.qmd"), String)

Loading…
Cancel
Save