Weave.jl/test/plotsjl_test.jl

14 lines
451 B
Julia
Raw Normal View History

2016-11-03 13:13:50 +01:00
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
2016-12-13 20:23:57 +01:00
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.md", "pandoc")
2018-07-26 10:35:17 +02:00
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.tex", "tex")