Skip to content

Commit 068510f

Browse files
authored
Sum inference tests (#113)
* Sum inference tests * limit inference test to v1.8+
1 parent 48d73b9 commit 068510f

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
@@ -42,15 +42,15 @@ import ApproxFunOrthogonalPolynomials: forwardrecurrence
4242
@testset "Algebra" begin
4343
ef = @inferred Fun(exp,ChebyshevInterval())
4444
@test ef == @inferred -(-ef)
45-
@test ef == (ef-1) + 1
45+
@test ef == @inferred (@inferred ef-1) + 1
4646

4747
if VERSION >= v"1.8"
4848
@test (@inferred ef / 3) == @inferred (3 \ ef)
4949
else
5050
@test ef / 3 == 3 \ ef
5151
end
5252

53-
cf = Fun(cos)
53+
cf = VERSION >= v"1.8" ? @inferred(Fun(cos)) : Fun(cos)
5454

5555
ecf = VERSION >= v"1.8" ? @inferred(Fun(x->cos(x)*exp(x))) : Fun(x->cos(x)*exp(x))
5656
eocf = VERSION >= v"1.8" ? @inferred(Fun(x->cos(x)/exp(x))) : Fun(x->cos(x)/exp(x))

0 commit comments

Comments
 (0)