Skip to content

Commit 0a38225

Browse files
authored
Add tests for 2D exp broadcast (#109)
* Add tests for 2D exp broadcast * remove time from testset
1 parent 9edabe1 commit 0a38225

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/Spaces/IntervalSpace.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
export continuity
2-
3-
4-
51
Space(d::IntervalOrSegment) = Chebyshev(d)
62
Space(d::FullSpace{<:Real}) = Chebyshev(Line())
73

test/MultivariateTest.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ end
121121
@test evaluate(f.A,0.1) map(f->f(0.1),f.A)
122122
end
123123

124-
125124
@testset "KroneckerOperator" begin
126125
Mx = Multiplication(Fun(cos),Chebyshev())
127126
My = Multiplication(Fun(sin),Chebyshev())
@@ -132,7 +131,7 @@ end
132131
@test C[1:100,1:100] Float64[C[k,j] for k=1:100,j=1:100]
133132
end
134133

135-
@time @testset "Partial derivative operators" begin
134+
@testset "Partial derivative operators" begin
136135
d = Space(0..1) * Space(0..2)
137136
Dx = Derivative(d, [1,0])
138137
testbandedblockbandedoperator(Dx)
@@ -160,7 +159,7 @@ end
160159
@test Number(B*f) f(0.1,0.3)
161160
end
162161

163-
@time @testset "x,y constructors" begin
162+
@testset "x,y constructors" begin
164163
d=ChebyshevInterval()^2
165164

166165
sp = ArraySpace(d,2)

test/broadcastingtest.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ using ApproxFunOrthogonalPolynomials, ApproxFunBase, SpecialFunctions, LinearAlg
4545
f = Fun(Ultraspherical(1))
4646
f .= exp.(x)
4747
@test f(0.1) exp(0.1)
48+
49+
d = Domain(-1..1)^2;
50+
x,y = Fun(d);
51+
z = exp.(x)
52+
@test z(0.2, 0.1) exp(0.2) rtol=10eps()
53+
z = exp.(y)
54+
@test z(0.2, 0.1) exp(0.1) rtol=10eps()
4855
end
4956

5057
@testset "norm" begin

0 commit comments

Comments
 (0)