Skip to content

Commit 1db0cfa

Browse files
authored
Change bandwidths(A,k) to bandwidth(A,k) in tests (#264)
* bandwidths(A,k) to bandwidth(A,k) in tests * fix import
1 parent 982e1d5 commit 1db0cfa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/JacobiTest.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using ApproxFunBase: maxspace, NoSpace, hasconversion,
1010
using ApproxFunBaseTest: testbandedbelowoperator, testbandedoperator, testspace, testtransforms,
1111
testfunctional
1212
using ApproxFunOrthogonalPolynomials: jacobip
13+
using BandedMatrices
1314
using StaticArrays: SVector
1415
using Static
1516
using HalfIntegers
@@ -322,7 +323,7 @@ include("testutils.jl")
322323
end
323324
@time testbandedoperator(D)
324325
# only one band should be populated
325-
@test bandwidths(D, 1) == -bandwidths(D, 2)
326+
@test bandwidth(D, 1) == -bandwidth(D, 2)
326327

327328
@test !isdiag(@inferred Derivative(Legendre()))
328329
T1 = typeof(Derivative(Legendre()))

test/miscAFBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Base.:(==)(a::UniqueInterval, b::UniqueInterval) = (@assert a.parentinterval ==
284284
P = PartialInverseOperator(C, (0, 6))
285285
Iapprox = (P * C)[1:10, 1:10]
286286
@test all(isone, diag(Iapprox))
287-
for k in axes(Iapprox,1), j in k + 1:min(k + bandwidths(P,2), size(Iapprox, 2))
287+
for k in axes(Iapprox,1), j in k + 1:min(k + bandwidth(P,2), size(Iapprox, 2))
288288
@test Iapprox[k,j] 0 atol=eps(eltype(Iapprox))
289289
end
290290
B = AbstractMatrix(P[1:10, 1:10])

0 commit comments

Comments
 (0)