2016-11-03 13:13:50 +01:00
|
|
|
using Weave
|
2018-07-23 12:37:25 +02:00
|
|
|
using Test
|
2016-04-27 20:52:55 +02:00
|
|
|
|
|
|
|
function mmtest(source, resfile, doctype)
|
2018-07-25 22:24:25 +02:00
|
|
|
weave("documents/$source", out_path = "documents/multimedia/$resfile", mod=:sandbox,
|
2018-07-26 19:32:10 +02:00
|
|
|
doctype=doctype, template = "templates/mini.tpl")
|
2018-07-23 12:37:25 +02:00
|
|
|
result = read("documents/multimedia/$resfile", String)
|
|
|
|
ref = read("documents/multimedia/$resfile.ref", String)
|
2016-04-27 20:52:55 +02:00
|
|
|
@test result == ref
|
2017-03-14 20:27:26 +01:00
|
|
|
rm("documents/multimedia/$resfile")
|
2016-04-27 20:52:55 +02:00
|
|
|
end
|
|
|
|
|
2018-07-24 10:46:04 +02:00
|
|
|
mmtest("rich_output.jmd", "rich_output.html", "md2html")
|
2016-04-27 20:52:55 +02:00
|
|
|
mmtest("rich_output.jmd", "rich_output.md", "pandoc")
|
|
|
|
mmtest("rich_output.jmd", "rich_output.tex", "tex")
|
2018-01-03 11:13:12 +01:00
|
|
|
mmtest("rich_output.jmd", "rich_output.github", "github")
|