2016-11-03 13:13:50 +01:00
|
|
|
using Weave
|
2018-07-23 12:37:25 +02:00
|
|
|
using Test
|
2016-04-27 21:02:20 +02:00
|
|
|
|
|
|
|
function pljtest(source, resfile, doctype)
|
2016-11-01 14:23:14 +01:00
|
|
|
weave("documents/$source", out_path = "documents/plotsjl/$resfile", doctype=doctype)
|
2018-07-23 12:37:25 +02:00
|
|
|
result = read("documents/plotsjl/$resfile", String)
|
|
|
|
ref = read("documents/plotsjl/$resfile.ref", String)
|
2016-04-27 21:02:20 +02:00
|
|
|
@test result == ref
|
2018-07-26 10:35:17 +02:00
|
|
|
#rm("documents/plotsjl/$resfile")
|
2016-04-27 21:02:20 +02:00
|
|
|
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-07-26 10:35:17 +02:00
|
|
|
pljtest("plotsjl_test_gr.jmd", "plotsjl_test_gr.tex", "tex")
|