Mercurial > repos > public > sbplib_julia
view 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 source
using Sbplib.Grids using Test @testset "Grid" begin @test_broken false end @testset "eval_on" begin 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 @test_broken false end