Weave.jl/test/plotsjl_test.jl

13 lines
417 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-11-03 11:30:49 +01:00
result = readstring(open("documents/plotsjl/$resfile"))
ref = readstring(open("documents/plotsjl/$resfile.ref"))
@test result == ref
end
pljtest("plotsjl_test.jmd", "plotsjl_test.md", "pandoc")
pljtest("plotsjl_test.jmd", "plotsjl_test.tex", "tex")