Skip to content

Commit

Permalink
Add tests for #202 and #203
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Mar 27, 2023
1 parent 6cf4e39 commit daafeb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/libfasttransformstests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,9 @@ FastTransforms.ft_set_num_threads(ceil(Int, Base.Sys.CPU_THREADS/2))
pa = plan_spinsph_analysis(A, 2)
test_nd_plans(p, ps, pa, A)
end

@testset "ultra2ulta bug and cheb2leg normalisation (#202, #203)" begin
@test ultra2ultra([0.0, 1.0], 1, 1) == [0,1]
@test cheb2leg([0.0, 1.0], normcheb=true) [0.,sqrt(2/π)]
@test cheb2leg([0.0, 1.0], normleg=true) [0.,sqrt(2/3)]
end

0 comments on commit daafeb3

Please sign in to comment.