comparison test/Grids/equidistant_grid_test.jl @ 1261:a4834779cd6d refactor/grids

Fix broken boundary_grid tests for equidistant grids
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 23 Feb 2023 12:23:49 +0100
parents ee57bdb366e4
children 30729cba1095
comparison
equal deleted inserted replaced
1260:8b9a77d2dc91 1261:a4834779cd6d
53 @inferred boundary_identifiers(g) 53 @inferred boundary_identifiers(g)
54 end 54 end
55 55
56 @testset "boundary_grid" begin 56 @testset "boundary_grid" begin
57 g = EquidistantGrid(0:0.1:1) 57 g = EquidistantGrid(0:0.1:1)
58 @test_broken boundary_grid(g, Lower()) == ZeroDimGrid(fill(0.0)) # TBD: Is fill necessary here? Why? 58 @test boundary_grid(g, Lower()) == ZeroDimGrid(0.0) # TBD: Is fill necessary here? Why?
59 @test_broken boundary_grid(g, Upper()) == ZeroDimGrid(fill(1.0)) 59 @test boundary_grid(g, Upper()) == ZeroDimGrid(1.0)
60 end 60 end
61 61
62 @testset "refine" begin 62 @testset "refine" begin
63 g = EquidistantGrid(0:0.1:1) 63 g = EquidistantGrid(0:0.1:1)
64 @test refine(g, 1) == g 64 @test refine(g, 1) == g