2014-12-08 09:25:57 +01:00
|
|
|
using Weave
|
2014-11-24 23:08:25 +01:00
|
|
|
using Base.Test
|
|
|
|
|
2014-12-06 18:16:45 +01:00
|
|
|
|
|
|
|
#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-08 22:51:27 +01:00
|
|
|
|
2014-12-06 23:19:08 +01:00
|
|
|
#Test Gadfly and markdown reader, Gadfly only works with 0.3
|
|
|
|
if VERSION.minor == 3
|
|
|
|
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
|
2014-12-08 22:51:27 +01:00
|
|
|
|
|
|
|
include("gadfly_formats.jl")
|
2014-12-06 23:19:08 +01:00
|
|
|
end
|