From 6e05797e75d0b3a81e36d78be0459ab9e607c8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20K=2E=20Papp?= Date: Tue, 18 Jun 2024 16:56:40 +0200 Subject: [PATCH] fix broken tests --- test/test_generic_api.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/test_generic_api.jl b/test/test_generic_api.jl index 52b0c4d..7de74df 100644 --- a/test/test_generic_api.jl +++ b/test/test_generic_api.jl @@ -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