add @eval in image_comparision_tests and replaced transpose in testexample 13

This commit is contained in:
Daniel Schwabeneder 2017-06-08 00:19:36 +02:00
parent eac9023b9a
commit 4dd176a7f2
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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