mirror of https://github.com/mpastell/Weave.jl
38 lines
1.1 KiB
Julia
38 lines
1.1 KiB
Julia
using JuliaReport
|
|
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
|
|
|
|
|
|
#Test Gadfly and markdown reader
|
|
weave("documents/gadfly_markdown_test.jmd", doctype="github",plotlib="gadfly", informat="markdown")
|
|
result = readall(open("documents/gadfly_markdown_test.md"))
|
|
ref = readall(open("documents/gadfly_markdown_test_ref.md"))
|
|
|
|
@test result == ref
|