Skip to content

Commit cdb6dd2

Browse files
committed
Wrap failing test in version check
1 parent 031f7aa commit cdb6dd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@ end
374374

375375
@testset "Colors issue #326" begin
376376
A = rand(RGB{N0f8}, 2, 2)
377-
@test_broken @inferred mean(A) == mean(map(c->mapc(FixedPointNumbers.Treduce, c), A))
377+
if VERSION >= v"1.5"
378+
@test_broken @inferred mean(A) == mean(map(c->mapc(FixedPointNumbers.Treduce, c), A))
379+
else
380+
@test @inferred mean(A) == mean(map(c->mapc(FixedPointNumbers.Treduce, c), A))
381+
end
378382
end
379383
end
380384

0 commit comments

Comments
 (0)