We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c2082 commit 16f14d1Copy full SHA for 16f14d1
test/ChebyshevTest.jl
@@ -23,7 +23,11 @@ import ApproxFunOrthogonalPolynomials: forwardrecurrence
23
f = @inferred Fun(ChebyshevInterval(), [1])
24
@test f(0.1) == 1
25
26
- ef = @inferred Fun(exp)
+ ef = if VERSION >= v"1.8"
27
+ @inferred Fun(exp)
28
+ else
29
+ Fun(exp)
30
+ end
31
@test @inferred ef(0.1) ≈ exp(0.1)
32
@test @inferred ef(.5) ≈ exp(.5)
33
@@ -40,7 +44,11 @@ import ApproxFunOrthogonalPolynomials: forwardrecurrence
40
44
@test ef == @inferred -(-ef)
41
45
@test ef == (ef-1) + 1
42
46
43
- @test (@inferred ef / 3) == @inferred (3 \ ef)
47
+ if VERSION >= v"1.8"
48
+ @test (@inferred ef / 3) == @inferred (3 \ ef)
49
50
+ @test ef / 3 == 3 \ ef
51
52
53
cf = Fun(cos)
54
0 commit comments