Mercurial > repos > public > sbplib_julia
diff test/Grids/grid_test.jl @ 1252:c150eabaf656 refactor/grids
Fix or mark tests broken where needed
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 22 Feb 2023 12:47:08 +0100 |
parents | 6323d2fe3b4f |
children | 20f42cf0800c |
line wrap: on
line diff
--- a/test/Grids/grid_test.jl Wed Feb 22 12:45:31 2023 +0100 +++ b/test/Grids/grid_test.jl Wed Feb 22 12:47:08 2023 +0100 @@ -6,7 +6,13 @@ end @testset "eval_on" begin - @test_broken false + g = equidistant_grid((5,3), (0.0,0.0), (2.0,1.0)) + + @test_broken eval_on(g, (x,y) -> 0.) isa LazyArray + @test_broken eval_on(g, (x,y) -> 0.) == fill(0., (5,3)) + + f(x,y) = sin(x)*cos(y) + @test_broken eval_on(g, f) == map(p->f(p...), points(g)) end @testset "getcomponent" begin