Weave.jl/test/chunk_options.jl

18 lines
529 B
Julia

using Weave
using Base.Test
cleanup = true
weave("documents/chunk_options.noweb", plotlib=nothing)
result = readstring("documents/chunk_options.md")
ref = readstring("documents/chunk_options_ref.md")
@test result == ref
cleanup && rm("documents/chunk_options.md")
tangle("documents/chunk_options.noweb", out_path = "documents/tangle")
result = readstring("documents/tangle/chunk_options.jl")
ref = readstring("documents/tangle/chunk_options.jl.ref")
@test ref == result
cleanup && rm("documents/tangle/chunk_options.jl")