Skip to content

Commit 6db70cb

Browse files
committed
reduce inference tests on old versions
1 parent 16f14d1 commit 6db70cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ChebyshevTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ import ApproxFunOrthogonalPolynomials: forwardrecurrence
5252

5353
cf = Fun(cos)
5454

55-
ecf = @inferred Fun(x->cos(x).*exp(x))
56-
eocf = @inferred Fun(x->cos(x)./exp(x))
55+
ecf = VERSION >= v"1.8" ? @inferred(Fun(x->cos(x)*exp(x))) : Fun(x->cos(x)*exp(x))
56+
eocf = VERSION >= v"1.8" ? @inferred(Fun(x->cos(x)/exp(x))) : Fun(x->cos(x)/exp(x))
5757

5858
@test ef(.5) exp(.5)
5959
@test ecf(.123456) cos(.123456).*exp(.123456)

0 commit comments

Comments
 (0)