Skip to content

Commit b605dec

Browse files
authored
tests for 2d tensor transforms (#124)
1 parent cd4086e commit b605dec

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

test/JacobiTest.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,9 @@ import ApproxFunOrthogonalPolynomials: jacobip
377377
end
378378
end
379379
end
380+
381+
@testset "casting bug ApproxFun.jl#770" begin
382+
f = Fun((t,x)-> im*exp(t)*sinpi(x), Legendre()^2)
383+
@test f(0.1, 0.2) im*exp(0.1)*sinpi(0.2)
384+
end
380385
end

test/UltrasphericalTest.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,9 @@ import ApproxFunOrthogonalPolynomials: jacobip
9898
end
9999
end
100100
end
101+
102+
@testset "casting bug ApproxFun.jl#770" begin
103+
f = Fun((t,x)->im*exp(t)*sinpi(x), Ultraspherical(2)^2)
104+
@test f(0.1, 0.2) im*exp(0.1)*sinpi(0.2)
105+
end
101106
end

0 commit comments

Comments
 (0)