Weave.jl/test/rich_output.jl

13 lines
436 B
Julia
Raw Normal View History

2016-11-03 13:13:50 +01:00
using Weave
using Base.Test
function mmtest(source, resfile, doctype)
weave("documents/$source", out_path = "documents/multimedia/$resfile", doctype=doctype, plotlib=nothing)
2016-11-03 11:30:49 +01:00
result = readstring(open("documents/multimedia/$resfile"))
ref = readstring(open("documents/multimedia/$resfile.ref"))
@test result == ref
end
mmtest("rich_output.jmd", "rich_output.md", "pandoc")
mmtest("rich_output.jmd", "rich_output.tex", "tex")