Weave.jl/test/winston_formats.jl

24 lines
911 B
Julia
Raw Normal View History

2016-11-03 13:13:50 +01:00
using Weave
using Base.Test
weave("documents/winston_formats.txt", plotlib="Winston", doctype="tex")
2016-11-03 11:30:49 +01:00
result = readstring(open("documents/winston_formats.tex"))
ref = readstring(open("documents/winston_formats_ref.tex"))
@test result == ref
weave("documents/winston_formats.txt", plotlib="Winston", doctype="github")
2016-11-03 11:30:49 +01:00
result = readstring(open("documents/winston_formats.md"))
ref = readstring(open("documents/winston_formats_ref.md"))
@test result == ref
weave("documents/winston_formats.txt", plotlib="Winston", doctype="pandoc", fig_ext=".svg")
2016-11-03 11:30:49 +01:00
result = readstring(open("documents/winston_formats.md"))
ref = readstring(open("documents/winston_formats_svg_ref.md"))
@test result == ref
weave("documents/winston_formats.txt", plotlib="Winston", doctype="rst")
2016-11-03 11:30:49 +01:00
result = readstring(open("documents/winston_formats.rst"))
ref = readstring(open("documents/winston_formats_ref.rst"))
@test result == ref