Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapp committed Jun 18, 2024
1 parent d5e7907 commit 6e05797
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_generic_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ end
@testset "transform_to and transform_from bivariate shortcuts" begin
basis = smolyak_basis(Chebyshev, InteriorGrid(), SmolyakParameters(2, 2), Val(2))
t = coordinate_transformations(BoundedLinear(1.0, 2.0), SemiInfRational(0, 1))
y = rand_in_domain(basis)
x = transform_to(domain(basis), t, y)
@test transform_to(basis, t, y) == x
@test transform_from(basis, t, x) == transform_from(domain(basis), t, x)
for _ in 1:100
y = rand_in_domain(basis t)
x = transform_to(domain(basis), t, y)
@test transform_to(basis, t, y) == x
@test transform_from(basis, t, x) == transform_from(domain(basis), t, x)
end
end

@testset "linear combination SVector passthrough" begin
Expand Down

0 comments on commit 6e05797

Please sign in to comment.