From ee1f9484485f673cb9c2971239859eb4477743f7 Mon Sep 17 00:00:00 2001 From: Miles Lucas Date: Wed, 27 May 2020 12:00:53 -1000 Subject: [PATCH] add process_clims tests --- test/runtests.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 696e147e..99c13cad 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -179,4 +179,9 @@ end @test isequal(collect(zip(Plots.unzip(z)...)), z) @test isequal(collect(zip(Plots.unzip(GeometryTypes.Point.(z))...)), z) end + op1 = process_clims((1.0, 2.0)) + op2 = process_clims((1, 2.0)) + data = randn(100, 100) + @test op1(data) == op2(data) + @test process_clims(nothing) == process_clims(missing) == process_clims(:auto) end