mirror of https://github.com/mpastell/Weave.jl
18 lines
553 B
Julia
18 lines
553 B
Julia
using Weave
|
|
using Base.Test
|
|
|
|
cleanup = true
|
|
|
|
weave("documents/chunk_options.noweb", plotlib=nothing)
|
|
result = readstring(open("documents/chunk_options.md"))
|
|
ref = readstring(open("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(open("documents/tangle/chunk_options.jl"))
|
|
ref = readstring(open("documents/tangle/chunk_options.jl.ref"))
|
|
@test ref == result
|
|
cleanup && rm("documents/tangle/chunk_options.jl")
|