Skip to content

Commit e69b879

Browse files
committed
Update runtests.jl
1 parent f38de57 commit e69b879

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/runtests.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ApproxFunFourier, ApproxFunBase, Test, SpecialFunctions, LinearAlgebra
2-
import ApproxFunBase: testspace, testtransforms, testmultiplication,
2+
import ApproxFunBase: testspace, testtransforms, testmultiplication, testraggedbelowoperator,
33
testbandedoperator, testblockbandedoperator, testbandedblockbandedoperator, testcalculus, Block, Vec, testfunctional
44
import SpecialFunctions: factorial
55

@@ -453,7 +453,7 @@ end
453453
@test (m+I)(0.1) m(0.1)+I
454454
end
455455

456-
@testset "Two circles" begin
456+
@testset "Two circles" begin
457457
Γ = Circle() Circle(0.5)
458458

459459
f = Fun(z -> in(z,component(Γ,2)) ? 1 : z,Γ)
@@ -471,6 +471,12 @@ end
471471
@test G1(exp(0.1im)) [exp(0.1im),0.]
472472
@test G1(0.5exp(0.1im)) [1,0.]
473473

474+
let f = G[1,1], sp = space(G1)[1,1] # test diagonal eltype bug
475+
D = Diagonal([map(Multiplication,components(f),sp.spaces)...])
476+
@test eltype(Matrix(D)) == Operator{ComplexF64}
477+
testraggedbelowoperator(Multiplication(f, sp))
478+
end
479+
474480
M = Multiplication(G, space(G1))
475481
testblockbandedoperator(M)
476482

0 commit comments

Comments
 (0)