From 9f4e32aa4db2d534534634cddb3995e8626c0454 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Mon, 5 Jul 2021 22:29:38 +0200 Subject: [PATCH] add regression test --- test/test_pipeline.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_pipeline.jl b/test/test_pipeline.jl index 2c81dfeb..027ff040 100644 --- a/test/test_pipeline.jl +++ b/test/test_pipeline.jl @@ -8,3 +8,11 @@ using Plots, Test plot!(pl, tex_output_standalone = true) @test pl[:tex_output_standalone] == true end + +@testset "get_axis_limits" begin + x = [.1, 5] + p1 = plot(x, [5, .1], yscale=:log10) + p2 = plot!(identity) + @test all(RecipesPipeline.get_axis_limits(p1, :x) .== x) + @test all(RecipesPipeline.get_axis_limits(p2, :x) .== x) +end