Weave.jl/test/chunk_options.jl

19 lines
557 B
Julia
Raw Normal View History

2016-11-03 13:13:50 +01:00
using Weave
using Test
2014-12-09 10:34:26 +01:00
2016-04-11 19:34:36 +02:00
cleanup = true
2017-03-13 22:14:25 +01:00
VER = "$(VERSION.major).$(VERSION.minor)"
weave("documents/chunk_options.noweb")
result = read("documents/chunk_options.md", String)
2018-08-17 09:28:12 +02:00
ref = read("documents/chunk_options_ref.md", String)
2014-12-09 10:34:26 +01:00
@test result == ref
2016-04-11 19:34:36 +02:00
cleanup && rm("documents/chunk_options.md")
2016-12-13 21:18:54 +01:00
tangle("documents/chunk_options.noweb", out_path = "documents/tangle")
result = read("documents/tangle/chunk_options.jl", String)
ref = read("documents/tangle/chunk_options.jl.ref", String)
2016-12-13 21:18:54 +01:00
@test ref == result
cleanup && rm("documents/tangle/chunk_options.jl")