view test/Grids/grid_test.jl @ 1268:dbddd0f61bde refactor/grids

Add refine, coarsen, boundary_identifiers, and boundary_grid methods to ZeroDimGrid
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 24 Feb 2023 21:54:39 +0100
parents c150eabaf656
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