Skip to content

Commit

Permalink
Wrap failing test in version check
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Sep 9, 2020
1 parent 031f7aa commit cdb6dd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ end

@testset "Colors issue #326" begin
A = rand(RGB{N0f8}, 2, 2)
@test_broken @inferred mean(A) == mean(map(c->mapc(FixedPointNumbers.Treduce, c), A))
if VERSION >= v"1.5"
@test_broken @inferred mean(A) == mean(map(c->mapc(FixedPointNumbers.Treduce, c), A))
else
@test @inferred mean(A) == mean(map(c->mapc(FixedPointNumbers.Treduce, c), A))
end
end
end

Expand Down

0 comments on commit cdb6dd2

Please sign in to comment.