Weave.jl/test/chunk_opts_gadfly.jl

19 lines
628 B
Julia
Raw Normal View History

2016-04-20 20:01:14 +02:00
using Weave, Compat
using Base.Test
cleanup = true
#Test hold and term options
weave("documents/test_hold.mdw", doctype="pandoc", plotlib="Gadfly")
2016-04-20 20:01:14 +02:00
result = @compat readstring(open("documents/test_hold.md"))
ref = @compat readstring(open("documents/test_hold_ref.md"))
@test result == ref
cleanup && rm("documents/test_hold.md")
2016-04-20 10:30:22 +02:00
#Test setting and restoring chunk options
Weave.weave("documents/default_opts.noweb", doctype = "tex")
2016-04-20 20:01:14 +02:00
result = @compat readstring(open("documents/default_opts.tex"))
ref = @compat readstring(open("documents/default_opts_ref.tex"))
2016-04-20 10:30:22 +02:00
@test result == ref
cleanup && rm("documents/default_opts.tex")