Skip to content

Commit aa434e7

Browse files
TotalVerbstevengj
authored andcommitted
Do not test .operators as functions on v0.6 (#299)
1 parent 8c6b04c commit aa434e7

File tree

1 file changed

+34
-26
lines changed

1 file changed

+34
-26
lines changed

test/runtests.jl

+34-26
Original file line numberDiff line numberDiff line change
@@ -1104,32 +1104,40 @@ for (Fun, func) in [(:IdFun, :identity),
11041104
end
11051105
end
11061106

1107-
for (Fun, func) in [(:AndFun, :&),
1108-
(:OrFun, :|),
1109-
(:XorFun, :),
1110-
(:AddFun, :+),
1111-
(:DotAddFun, :.+),
1112-
(:SubFun, :-),
1113-
(:DotSubFun, :.-),
1114-
(:MulFun, :*),
1115-
(:DotMulFun, :.*),
1116-
(:RDivFun, :/),
1117-
(:DotRDivFun, :./),
1118-
(:LDivFun, :\ ),
1119-
(:IDivFun, :div),
1120-
(:DotIDivFun, @compat(Symbol(""))),
1121-
(:ModFun, :mod),
1122-
(:RemFun, :rem),
1123-
(:DotRemFun, :.%),
1124-
(:PowFun, :^),
1125-
(:MaxFun, :scalarmax),
1126-
(:MinFun, :scalarmin),
1127-
(:LessFun, :<),
1128-
(:MoreFun, :>),
1129-
(:DotLSFun, :.<<),
1130-
(:DotRSFun, :.>>),
1131-
(:ElementwiseMaxFun, :max),
1132-
(:ElementwiseMinFun, :min)]
1107+
dotfunctors = [(:DotAddFun, :.+),
1108+
(:DotSubFun, :.-),
1109+
(:DotMulFun, :.*),
1110+
(:DotRDivFun, :./),
1111+
(:DotIDivFun, @compat(Symbol(""))),
1112+
(:DotRemFun, :.%),
1113+
(:DotLSFun, :.<<),
1114+
(:DotRSFun, :.>>)]
1115+
1116+
functors = [(:AndFun, :&),
1117+
(:OrFun, :|),
1118+
(:XorFun, :),
1119+
(:AddFun, :+),
1120+
(:SubFun, :-),
1121+
(:MulFun, :*),
1122+
(:RDivFun, :/),
1123+
(:LDivFun, :\ ),
1124+
(:IDivFun, :div),
1125+
(:ModFun, :mod),
1126+
(:RemFun, :rem),
1127+
(:PowFun, :^),
1128+
(:MaxFun, :scalarmax),
1129+
(:MinFun, :scalarmin),
1130+
(:LessFun, :<),
1131+
(:MoreFun, :>),
1132+
(:ElementwiseMaxFun, :max),
1133+
(:ElementwiseMinFun, :min)]
1134+
1135+
# since #17623, dot functions are no longer function objects
1136+
if VERSION < v"0.6.0-dev.1614"
1137+
append!(functors, dotfunctors)
1138+
end
1139+
1140+
for (Fun, func) in functors
11331141
begin
11341142
if isdefined(Base, func) && (func !== :.>> || VERSION >= v"0.4.0-dev+553") && (func !== :.% || VERSION >= v"0.5.0-dev+1472")
11351143
checkfunc(Fun, func)

0 commit comments

Comments
 (0)