From 4dd176a7f29d596c04b0c070eb7e68f409fe4757 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Thu, 8 Jun 2017 00:19:36 +0200 Subject: [PATCH] add @eval in image_comparision_tests and replaced transpose in testexample 13 --- src/examples.jl | 3 ++- test/imgcomp.jl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/examples.jl b/src/examples.jl index e4c13ca6..85c41ca3 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -126,7 +126,8 @@ PlotExample("Line styles", PlotExample("Marker types", "", [:(begin - markers = filter(m -> m in Plots.supported_markers(), Plots._shape_keys)' + markers = filter(m -> m in Plots.supported_markers(), Plots._shape_keys) + markers = reshape(markers, 1, length(markers)) n = length(markers) x = linspace(0,10,n+2)[2:end-1] y = repmat(reverse(x)', n, 1) diff --git a/test/imgcomp.jl b/test/imgcomp.jl index 994670f9..cd3b7058 100644 --- a/test/imgcomp.jl +++ b/test/imgcomp.jl @@ -13,7 +13,7 @@ try end -using Plots +using Plots using StatPlots using FactCheck using Glob @@ -99,7 +99,7 @@ function image_comparison_facts(pkg::Symbol; for i in 1:length(Plots._examples) i in skip && continue if only == nothing || i in only - @fact image_comparison_tests(pkg, i, debug=debug, sigma=sigma, eps=eps) |> success --> true + @fact @eval(image_comparison_tests(Symbol(String(Symbol($pkg))[7:end]), $i, debug=$debug, sigma=$sigma, eps=$eps)) |> success --> true end end end