From 69cebd36317dd394beb912d76a9c8fd9c2897f92 Mon Sep 17 00:00:00 2001 From: Jeff Fessler Date: Sat, 26 Oct 2024 23:00:02 -0400 Subject: [PATCH] Improve coverage and bump ColorTypes compat (#57) * Coverage for _clim etc. * Bump compat for ColorTypes to 0.11, 0.12 --- Project.toml | 2 +- test/color.jl | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0528ce8..a3dfb68 100644 --- a/Project.toml +++ b/Project.toml @@ -14,7 +14,7 @@ REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" [compat] AxisArrays = "0.4.4, 0.4.6" -ColorTypes = "0.11" +ColorTypes = "0.11, 0.12" FFTViews = "0.3" MosaicViews = "0.3" OffsetArrays = "1.12" diff --git a/test/color.jl b/test/color.jl index a79d6d8..f5a0b66 100644 --- a/test/color.jl +++ b/test/color.jl @@ -2,6 +2,8 @@ using ColorTypes: RGB using MIRTjim: jim +import MIRTjim # _uniform _clim _units_same +using Test: @testset include("isplot.jl") @@ -13,3 +15,7 @@ zz = [z, z] z2 = stack(zz) @isplot jim(z2) @isplot jim(zz) + +@test isnothing(MIRTjim._uniform(z)) +@test isnothing(MIRTjim._clim(z)) +@test !MIRTjim._units_same(0, 1)