Skip to content

Commit c8dfab2

Browse files
authored
tests for indexing with infrange (#122)
1 parent e2cfe4d commit c8dfab2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunOrthogonalPolynomials"
22
uuid = "b70543e2-c0d9-56b8-a290-0d4d6d4de211"
3-
version = "0.5.9"
3+
version = "0.5.10"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

test/miscAFBase.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ Base.:(==)(a::UniqueInterval, b::UniqueInterval) = (@assert a.parentinterval ==
270270
@test rowrange(S, 1) == 2:2
271271
@test colrange(S, 2) == 1:1
272272
@test (@inferred BandedMatrix(S)) == (@inferred Matrix(S))
273+
274+
A = Derivative() * Multiplication(Fun()) : Chebyshev();
275+
kr = 1:ApproxFunBase.InfiniteCardinal{0}()
276+
B1 = A[kr, :][1:10, 1:10]
277+
B2 = A[:, kr][1:10, 1:10]
278+
B3 = A[:, :][1:10, 1:10]
279+
B4 = A[kr, kr][1:10, 1:10]
280+
@test B1 == B2 == B3 == B4
273281
end
274282

275283
@testset "CachedOperator" begin

0 commit comments

Comments
 (0)