2014-12-09 10:34:26 +01:00
|
|
|
using Weave
|
|
|
|
using Base.Test
|
|
|
|
|
|
|
|
#Test chunk options and output formats
|
|
|
|
weave("documents/chunk_options.noweb", plotlib=nothing)
|
|
|
|
result = readall(open("documents/chunk_options.md"))
|
|
|
|
ref = readall(open("documents/chunk_options_ref.md"))
|
|
|
|
@test result == ref
|
|
|
|
|
|
|
|
weave("documents/chunk_options.noweb", doctype="tex", plotlib=nothing)
|
|
|
|
result = readall(open("documents/chunk_options.tex"))
|
|
|
|
ref = readall(open("documents/chunk_options_ref.tex"))
|
|
|
|
@test result == ref
|
|
|
|
|
|
|
|
weave("documents/chunk_options.noweb", doctype="texminted", plotlib=nothing)
|
|
|
|
result = readall(open("documents/chunk_options.tex"))
|
|
|
|
ref = readall(open("documents/chunk_options_ref.texminted"))
|
|
|
|
@test result == ref
|
|
|
|
|
|
|
|
weave("documents/chunk_options.noweb", doctype="rst", plotlib=nothing)
|
|
|
|
result = readall(open("documents/chunk_options.rst"))
|
|
|
|
ref = readall(open("documents/chunk_options_ref.rst"))
|
|
|
|
@test result == ref
|
2014-12-21 08:25:45 +01:00
|
|
|
|
|
|
|
tangle("documents/chunk_options.noweb")
|
|
|
|
result = readall(open("documents/chunk_options.jl"))
|
|
|
|
ref = readall(open("documents/chunk_options_ref.jl"))
|
2015-01-05 15:35:24 +01:00
|
|
|
@test result == ref
|
2015-01-09 15:48:58 +01:00
|
|
|
|
|
|
|
#Test chunk options and output formats
|
|
|
|
weave("documents/chunk_func.noweb", plotlib=nothing)
|
|
|
|
result = readall(open("documents/chunk_func.md"))
|
|
|
|
ref = readall(open("documents/chunk_func_ref.md"))
|
|
|
|
@test result == ref
|