Skip to content

Commit daafeb3

Browse files
committed
Add tests for #202 and #203
1 parent 6cf4e39 commit daafeb3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/libfasttransformstests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,9 @@ FastTransforms.ft_set_num_threads(ceil(Int, Base.Sys.CPU_THREADS/2))
228228
pa = plan_spinsph_analysis(A, 2)
229229
test_nd_plans(p, ps, pa, A)
230230
end
231+
232+
@testset "ultra2ulta bug and cheb2leg normalisation (#202, #203)" begin
233+
@test ultra2ultra([0.0, 1.0], 1, 1) == [0,1]
234+
@test cheb2leg([0.0, 1.0], normcheb=true) [0.,sqrt(2/π)]
235+
@test cheb2leg([0.0, 1.0], normleg=true) [0.,sqrt(2/3)]
236+
end

0 commit comments

Comments
 (0)