Skip to content

Commit 35db45d

Browse files
committed
Add tests
1 parent 50c7429 commit 35db45d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/JacobiTest.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,4 +462,15 @@ using StaticArrays: SVector
462462
end
463463
end
464464
end
465+
466+
@testset "type inference" begin
467+
x = @inferred ApproxFunBase.maxspace(Jacobi(1,1), Jacobi(2,2))
468+
@test x == Jacobi(2,2)
469+
470+
x = @inferred ApproxFunBase.union_rule(Chebyshev(), Jacobi(1,1))
471+
@test x == Jacobi(-0.5, -0.5)
472+
473+
x = @inferred ApproxFunBase.conversion_rule(Jacobi(1,1), Jacobi(2,2))
474+
@test x == Jacobi(1,1)
475+
end
465476
end

0 commit comments

Comments
 (0)