Gadfly tests should now pass also with Julia 0.4

pull/29/head
Matti Pastell 2014-12-22 16:52:52 +02:00
parent 8ae1cbd920
commit ca6da03bcb
2 changed files with 10 additions and 7 deletions

2
.gitignore vendored
View File

@ -13,9 +13,11 @@ test/documents/*.md
test/documents/*.rst
test/documents/*.html
test/documents/*.pdf
test/documents/chunk_options.jl
!test/documents/*ref.*
tmp/
.idea
*.*~

View File

@ -4,13 +4,14 @@ using Base.Test
include("chunk_options.jl")
#include("pyplot_formats.jl") cause segfaults, but OK if run by itself
#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
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
#Test winston only for 0.3
if VERSION.minor == 3
include("winston_formats.jl")
include("gadfly_formats.jl")
end
include("gadfly_formats.jl")