From 15bdd616f834a777e3d335670c27f42822cfd07f Mon Sep 17 00:00:00 2001 From: Charles Kawczynski Date: Fri, 5 Jan 2024 10:54:04 -0500 Subject: [PATCH] Skip amb test for all other julia versions --- test/AquaTest.jl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/AquaTest.jl b/test/AquaTest.jl index 546bdc88..625044e3 100644 --- a/test/AquaTest.jl +++ b/test/AquaTest.jl @@ -24,11 +24,13 @@ end ambs_dict[(1, 10)] = 1 verkey(v) = (Int(VERSION.major), Int(VERSION.minor)) - @test length(ambs) ≤ ambs_dict[verkey(VERSION)] - # notify us when we fix one - if length(ambs) < ambs_dict[verkey(VERSION)] - @info "Ambiguities may have been fixed, please lower the limit." - @info " length(ambs) = $(length(ambs))" + if haskey(ambs_dict, verkey(VERSION)) + @test length(ambs) ≤ ambs_dict[verkey(VERSION)] + # notify us when we fix one + if length(ambs) < ambs_dict[verkey(VERSION)] + @info "Ambiguities may have been fixed, please lower the limit." + @info " length(ambs) = $(length(ambs))" + end end end