From ffe7f9e23e76853ffdd59f3522bd728904088f3f Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Mon, 25 Apr 2022 21:50:47 +0200 Subject: [PATCH] add test --- test/test_args.jl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/test_args.jl b/test/test_args.jl index f49c0e21..a9e865dc 100644 --- a/test/test_args.jl +++ b/test/test_args.jl @@ -1,4 +1,4 @@ -using Plots, Test +using Plots, Test, NaNMath @testset "Series Attributes" begin pl = plot([[1, 2, 3], [2, 3, 4]], lw = 5) @@ -16,3 +16,12 @@ end @test pl[1][axis][:tickfontfamily] == "Times" end end + +@testset "Permute recipes" begin + pl = bar(["a", "b", "c"], [1, 2, 3]) + ppl = bar(["a", "b", "c"], [1, 2, 3], series_permutation = (:x, :y)) + @test xticks(ppl) == yticks(pl) + @test yticks(pl) == xticks(ppl) + @test filter(isfinite, pl[1][1][:x]) == filter(isfinite, ppl[1][1][:y]) + @test filter(isfinite, pl[1][1][:y]) == filter(isfinite, ppl[1][1][:x]) +end