add @eval in image_comparision_tests and replaced transpose in testexample 13
This commit is contained in:
parent
eac9023b9a
commit
4dd176a7f2
@ -126,7 +126,8 @@ PlotExample("Line styles",
|
|||||||
PlotExample("Marker types",
|
PlotExample("Marker types",
|
||||||
"",
|
"",
|
||||||
[:(begin
|
[:(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)
|
n = length(markers)
|
||||||
x = linspace(0,10,n+2)[2:end-1]
|
x = linspace(0,10,n+2)[2:end-1]
|
||||||
y = repmat(reverse(x)', n, 1)
|
y = repmat(reverse(x)', n, 1)
|
||||||
|
|||||||
@ -13,7 +13,7 @@ try
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
using Plots
|
using Plots
|
||||||
using StatPlots
|
using StatPlots
|
||||||
using FactCheck
|
using FactCheck
|
||||||
using Glob
|
using Glob
|
||||||
@ -99,7 +99,7 @@ function image_comparison_facts(pkg::Symbol;
|
|||||||
for i in 1:length(Plots._examples)
|
for i in 1:length(Plots._examples)
|
||||||
i in skip && continue
|
i in skip && continue
|
||||||
if only == nothing || i in only
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user