Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Nov 18, 2023
1 parent 5cc1034 commit 441c978
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,15 @@ end
@test c == S \ (xyz -> 1).(xyz)
@test (S * c)[SphericalCoordinate(0.1,0.2)] 1

f = c -> ((x,y,z) = c; 1 + x + y + z)
u = S * (S \ f.(xyz))
f = (x,y,z) -> 1 + x + y + z
c = S \ splat(f).(xyz)
u = S * c
p = SphericalCoordinate(0.1,0.2)
@test u[p] 1+sum(p)

x = grid(SphericalHarmonic(), 5)
P = plan_transform(SphericalHarmonic(), 5)
@test P * splat(f).(x) [c; zeros(5)]
end

@testset "adaptive" begin
Expand Down

0 comments on commit 441c978

Please sign in to comment.