mirror of https://github.com/mpastell/Weave.jl
14 lines
451 B
Julia
14 lines
451 B
Julia
using Weave
|
|
using Test
|
|
|
|
function pljtest(source, resfile, doctype)
|
|
weave("documents/$source", out_path = "documents/plotsjl/$resfile", doctype=doctype)
|
|
result = read("documents/plotsjl/$resfile", String)
|
|
ref = read("documents/plotsjl/$resfile.ref", String)
|
|
@test result == ref
|
|
rm("documents/plotsjl/$resfile")
|
|
end
|
|
|
|
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.md", "pandoc")
|
|
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.tex", "tex")
|