Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Jun 9, 2021
1 parent 5d927a6 commit cecf2e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bases/bases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function demap(V::SubQuasiArray{<:Any,2})
kr, jr = parentindices(V)
demap(parent(V)[kr,:])[:,jr]
end
function demap(wB::ApplyQuasiArray{<:Any,typeof(*)})
function demap(wB::ApplyQuasiArray{<:Any,N,typeof(*)}) where N
a = arguments(wB)
*(demap(first(a)), tail(a)...)
end
Expand Down
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ end

@test L[y,:] \ (y .* exp.(y)) L[y,:] \ BroadcastQuasiVector(y -> y*exp(y), y)
@test L[y,:] \ (y .* L[y,1:3]) [L[y,:]\(y .* L[y,1]) L[y,:]\(y .* L[y,2]) L[y,:]\(y .* L[y,3])]

c = randn(size(L,2))
@test L[y,:] \ (L[y,:] * c) c
@test ContinuumArrays.demap(L[y,:] * c) == L*c
end
end

Expand Down

0 comments on commit cecf2e3

Please sign in to comment.