Weave.jl/test/chunk_options.jl

20 lines
577 B
Julia
Raw Normal View History

2016-11-03 13:13:50 +01:00
using Weave
2014-12-09 10:34:26 +01:00
using Base.Test
2016-04-11 19:34:36 +02:00
cleanup = true
2017-03-13 22:14:25 +01:00
VER = "$(VERSION.major).$(VERSION.minor)"
2014-12-09 10:34:26 +01:00
weave("documents/chunk_options.noweb", plotlib=nothing)
2016-12-20 20:37:39 +01:00
result = readstring("documents/chunk_options.md")
2017-03-13 22:14:25 +01:00
ref = readstring("documents/$VER/chunk_options_ref.md")
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")
2016-12-20 20:37:39 +01:00
result = readstring("documents/tangle/chunk_options.jl")
ref = readstring("documents/tangle/chunk_options.jl.ref")
2016-12-13 21:18:54 +01:00
@test ref == result
cleanup && rm("documents/tangle/chunk_options.jl")