Skip to content

Commit cc1b0e9

Browse files
committed
add tests
1 parent 1227fc5 commit cc1b0e9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/bases/bases.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ end
133133
_grid(::MappedBasisLayout, P) = invmap(parentindices(P)[1])[grid(demap(P))]
134134
_grid(::SubBasisLayout, P) = grid(parent(P))
135135
_grid(::WeightedBasisLayouts, P) = grid(unweightedbasis(P))
136-
grid(P) = _grid(MemoryLayout(typeof(P)), P)
136+
grid(P) = _grid(MemoryLayout(P), P)
137137

138138

139139
struct TransformFactorization{T,Grid,Plan,IPlan} <: Factorization{T}

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,4 +605,10 @@ include("test_basisconcat.jl")
605605
u = L*randn(6)
606606
rep = RecipesBase.apply_recipe(Dict{Symbol, Any}(), u)
607607
@test rep[1].args == (L.points,u[L.points])
608+
609+
@testset "padded" begin
610+
u = L * Vcat(rand(3), Zeros(3))
611+
rep = RecipesBase.apply_recipe(Dict{Symbol, Any}(), u)
612+
@test rep[1].args == (L.points,u[L.points])
613+
end
608614
end

0 commit comments

Comments
 (0)