Skip to content

Commit b5484a6

Browse files
committed
Add tests
1 parent bf76641 commit b5484a6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/ChebyshevTest.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,14 @@ import ApproxFunOrthogonalPolynomials: forwardrecurrence
210210
end
211211

212212
@testset "inplace transform" begin
213-
for v in Any[rand(10), rand(ComplexF64, 10)]
214-
v2 = copy(v)
215-
transform!(Chebyshev(), v)
216-
@test transform(Chebyshev(), v2) == v
217-
itransform!(Chebyshev(), v)
218-
@test v2 v
213+
for T in [Float32, Float64, BigFloat]
214+
for v in Any[rand(T, 10), rand(complex(T), 10)]
215+
v2 = copy(v)
216+
transform!(Chebyshev(), v)
217+
@test transform(Chebyshev(), v2) == v
218+
itransform!(Chebyshev(), v)
219+
@test v2 v
220+
end
219221
end
220222
end
221223
end

0 commit comments

Comments
 (0)