diff --git a/test/runtests.jl b/test/runtests.jl index 05f2c34..a5639e5 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -142,6 +142,8 @@ using ImageCore @test sum(x) ≈ float(a) + b x = typeof(a)[] @test sum(x) == float(zero(a)) + x = [a] + @test sum(x) ≈ float(a) end end for C in (MCC, CM) @@ -151,6 +153,8 @@ using ImageCore @test sum(x) == 2a x = typeof(a)[] @test sum(x) == float(zero(a)) + x = [a] + @test sum(x) == float(a) end a = GreenMagenta(0.1, 0.2)