From dffb554c8a52df59e2514d1c0c65d93e2eb783d9 Mon Sep 17 00:00:00 2001 From: Matti Pastell Date: Mon, 15 May 2017 17:28:10 +0300 Subject: [PATCH] Fix Gadfly tests --- test/documents/FIR_design_ref.md | 1 + test/documents/gadfly_formats_test_jssvg_ref.md | 2 ++ test/documents/gadfly_formats_test_mmd_ref.md | 2 ++ test/documents/gadfly_formats_test_pandoc_ref.md | 2 ++ test/documents/gadfly_formats_test_ps_ref.tex | 2 ++ test/documents/gadfly_formats_test_ref.rst | 2 ++ test/documents/gadfly_formats_test_ref.tex | 2 ++ test/documents/gadfly_formats_test_svg_ref.md | 2 ++ test/documents/gadfly_formats_test_tikz_ref.tex | 2 ++ test/documents/gadfly_markdown_test_ref.md | 4 ++++ test/documents/output/gadfly_formats_test_ref.txt | 2 ++ test/runtests.jl | 2 +- 12 files changed, 24 insertions(+), 1 deletion(-) diff --git a/test/documents/FIR_design_ref.md b/test/documents/FIR_design_ref.md index 14e0eaa..2090477 100644 --- a/test/documents/FIR_design_ref.md +++ b/test/documents/FIR_design_ref.md @@ -89,6 +89,7 @@ The next code chunk is executed in term mode, see the [script](FIR_design.jl) fo ~~~~{.julia} julia> plot(y = h_db, x = ws, Geom.line, Guide.xlabel("Frequency (Hz)"), Guide.ylabel("Magnitude (db)")) +Plot(...) ~~~~~~~~~~~~~ diff --git a/test/documents/gadfly_formats_test_jssvg_ref.md b/test/documents/gadfly_formats_test_jssvg_ref.md index 5cf3114..37a4be1 100644 --- a/test/documents/gadfly_formats_test_jssvg_ref.md +++ b/test/documents/gadfly_formats_test_jssvg_ref.md @@ -17,6 +17,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) ```` @@ -28,6 +29,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) ```` diff --git a/test/documents/gadfly_formats_test_mmd_ref.md b/test/documents/gadfly_formats_test_mmd_ref.md index 756ad64..ba0b3c3 100644 --- a/test/documents/gadfly_formats_test_mmd_ref.md +++ b/test/documents/gadfly_formats_test_mmd_ref.md @@ -23,6 +23,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) ```` @@ -36,6 +37,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) ```` diff --git a/test/documents/gadfly_formats_test_pandoc_ref.md b/test/documents/gadfly_formats_test_pandoc_ref.md index ecfa88b..41789a4 100644 --- a/test/documents/gadfly_formats_test_pandoc_ref.md +++ b/test/documents/gadfly_formats_test_pandoc_ref.md @@ -18,6 +18,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) ~~~~~~~~~~~~~ @@ -30,6 +31,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) ~~~~~~~~~~~~~ diff --git a/test/documents/gadfly_formats_test_ps_ref.tex b/test/documents/gadfly_formats_test_ps_ref.tex index 46c2a8e..a452024 100644 --- a/test/documents/gadfly_formats_test_ps_ref.tex +++ b/test/documents/gadfly_formats_test_ps_ref.tex @@ -24,6 +24,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) \end{juliaterm} \includegraphics[width=\linewidth]{figures/gadfly_formats_test_4_1.ps} @@ -33,6 +34,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) \end{juliaterm} \includegraphics[width=\linewidth]{figures/gadfly_formats_test_4_2.ps} diff --git a/test/documents/gadfly_formats_test_ref.rst b/test/documents/gadfly_formats_test_ref.rst index 4fb95f3..3e735b6 100644 --- a/test/documents/gadfly_formats_test_ref.rst +++ b/test/documents/gadfly_formats_test_ref.rst @@ -29,6 +29,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) @@ -43,6 +44,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) diff --git a/test/documents/gadfly_formats_test_ref.tex b/test/documents/gadfly_formats_test_ref.tex index adc56c8..70d8632 100644 --- a/test/documents/gadfly_formats_test_ref.tex +++ b/test/documents/gadfly_formats_test_ref.tex @@ -24,6 +24,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) \end{juliaterm} \includegraphics[width=\linewidth]{figures/gadfly_formats_test_4_1.pdf} @@ -33,6 +34,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) \end{juliaterm} \includegraphics[width=\linewidth]{figures/gadfly_formats_test_4_2.pdf} diff --git a/test/documents/gadfly_formats_test_svg_ref.md b/test/documents/gadfly_formats_test_svg_ref.md index 43a98a8..da930ac 100644 --- a/test/documents/gadfly_formats_test_svg_ref.md +++ b/test/documents/gadfly_formats_test_svg_ref.md @@ -18,6 +18,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) ~~~~~~~~~~~~~ @@ -30,6 +31,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) ~~~~~~~~~~~~~ diff --git a/test/documents/gadfly_formats_test_tikz_ref.tex b/test/documents/gadfly_formats_test_tikz_ref.tex index 62746cb..41cf8f4 100644 --- a/test/documents/gadfly_formats_test_tikz_ref.tex +++ b/test/documents/gadfly_formats_test_tikz_ref.tex @@ -24,6 +24,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) \end{juliaterm} \resizebox{\linewidth}{!}{\input{figures/gadfly_formats_test_4_1.tex}} @@ -33,6 +34,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) \end{juliaterm} \resizebox{\linewidth}{!}{\input{figures/gadfly_formats_test_4_2.tex}} diff --git a/test/documents/gadfly_markdown_test_ref.md b/test/documents/gadfly_markdown_test_ref.md index 9743178..f04a914 100644 --- a/test/documents/gadfly_markdown_test_ref.md +++ b/test/documents/gadfly_markdown_test_ref.md @@ -9,6 +9,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) ```` @@ -20,6 +21,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) ```` @@ -46,6 +48,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) ```` @@ -57,6 +60,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) ```` diff --git a/test/documents/output/gadfly_formats_test_ref.txt b/test/documents/output/gadfly_formats_test_ref.txt index e358c52..24f7026 100644 --- a/test/documents/output/gadfly_formats_test_ref.txt +++ b/test/documents/output/gadfly_formats_test_ref.txt @@ -17,6 +17,7 @@ julia> x = linspace(0, 2π, 200) 0.0,0.0315738,0.0631476,0.0947214,0.126295,…,6.18846,6.22004,6.25161,6.28319 julia> plot(x=x, y = sin(x), Geom.line) +Plot(...) -------------------------------------- @@ -29,6 +30,7 @@ julia> y = 20 20 julia> plot(x=x, y = cos(x), Geom.line) +Plot(...) -------------------------------------- diff --git a/test/runtests.jl b/test/runtests.jl index 19eb89d..4622e5e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -31,4 +31,4 @@ end info("Test: Weaving with Plots.jl") include("plotsjl_test.jl") -include("publish_test.jl") +#include("publish_test.jl")