2016-11-03 13:13:50 +01:00
|
|
|
using Weave
|
2018-07-23 12:37:25 +02:00
|
|
|
using Test
|
2016-04-19 16:07:07 +02:00
|
|
|
|
|
|
|
cleanup = true
|
|
|
|
|
|
|
|
#Test hold and term options
|
|
|
|
weave("documents/test_hold.mdw", doctype="pandoc", plotlib="Gadfly")
|
2018-07-23 12:37:25 +02:00
|
|
|
result = read("documents/test_hold.md", String)
|
|
|
|
ref = read("documents/test_hold_ref.md", String)
|
2016-04-19 16:07:07 +02:00
|
|
|
@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")
|
2018-07-23 12:37:25 +02:00
|
|
|
result = read("documents/default_opts.tex", String)
|
|
|
|
ref = read("documents/default_opts_ref.tex", String)
|
2016-04-20 10:30:22 +02:00
|
|
|
@test result == ref
|
|
|
|
cleanup && rm("documents/default_opts.tex")
|