Weave.jl/test/plotsjl_test.jl

16 lines
566 B
Julia
Raw Normal View History

2016-11-03 13:13:50 +01:00
using Weave
using Base.Test
function pljtest(source, resfile, doctype)
weave("documents/$source", out_path = "documents/plotsjl/$resfile", doctype=doctype)
2016-12-20 20:37:39 +01:00
result = readstring("documents/plotsjl/$resfile")
ref = readstring("documents/plotsjl/$resfile.ref")
@test result == ref
2016-12-19 18:12:02 +01:00
rm("documents/plotsjl/$resfile")
end
2018-01-02 14:54:55 +01:00
#pljtest("plotsjl_test.jmd", "plotsjl_test.md", "pandoc")
#pljtest("plotsjl_test.jmd", "plotsjl_test.tex", "tex")
2016-12-13 20:23:57 +01:00
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.md", "pandoc")
2018-01-02 14:54:55 +01:00
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.tex", "tex")