Skip to content

Commit e3e06a9

Browse files
authored
[test] set version specific bounds in detect_ambiguities (#789)
1 parent 3372719 commit e3e06a9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/ambiguities.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11

22
# Allow no new ambiguities (see #18), unless you fix some old ones first!
3-
@test length(detect_ambiguities(Base, LinearAlgebra, StaticArrays)) <= 5
43

4+
const allowable_ambiguities =
5+
if VERSION < v"1.1"
6+
4
7+
elseif VERSION < v"1.2"
8+
2
9+
else
10+
1
11+
end
12+
13+
@test length(detect_ambiguities(Base, LinearAlgebra, StaticArrays)) <= allowable_ambiguities

0 commit comments

Comments
 (0)