diff test/Grids/tensor_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 a4ddae8b5d49
children 279179677040
line wrap: on
line diff
--- a/test/Grids/tensor_grid_test.jl	Fri Feb 24 21:48:01 2023 +0100
+++ b/test/Grids/tensor_grid_test.jl	Fri Feb 24 21:54:39 2023 +0100
@@ -80,8 +80,8 @@
         @test refine(TensorGrid(g1(11), g2(6)),1) == TensorGrid(g1(11), g2(6))
         @test refine(TensorGrid(g1(11), g2(6)),2) == TensorGrid(g1(21), g2(11))
         @test refine(TensorGrid(g1(11), g2(6)),3) == TensorGrid(g1(31), g2(16))
-        @test_broken refine(TensorGrid(g1(11), g₄), 1) == TensorGrid(g1(11), g₄)
-        @test_broken refine(TensorGrid(g1(11), g₄), 2) == TensorGrid(g1(21), g₄)
+        @test refine(TensorGrid(g1(11), g₄), 1) == TensorGrid(g1(11), g₄)
+        @test refine(TensorGrid(g1(11), g₄), 2) == TensorGrid(g1(21), g₄)
     end
 
     @testset "coarsen" begin
@@ -91,13 +91,13 @@
         @test coarsen(TensorGrid(g1(11), g2(6)),1) == TensorGrid(g1(11), g2(6))
         @test coarsen(TensorGrid(g1(21), g2(11)),2) == TensorGrid(g1(11), g2(6))
         @test coarsen(TensorGrid(g1(31), g2(16)),3) == TensorGrid(g1(11), g2(6))
-        @test_broken coarsen(TensorGrid(g1(11), g₄), 1) == TensorGrid(g1(11), g₄)
-        @test_broken coarsen(TensorGrid(g1(21), g₄), 2) == TensorGrid(g1(11), g₄)
+        @test coarsen(TensorGrid(g1(11), g₄), 1) == TensorGrid(g1(11), g₄)
+        @test coarsen(TensorGrid(g1(21), g₄), 2) == TensorGrid(g1(11), g₄)
     end
 
     @testset "boundary_identifiers" begin
         @test boundary_identifiers(TensorGrid(g₁, g₂)) == map((n,id)->TensorGridBoundary{n,id}(), (1,1,2,2), (Lower,Upper,Lower,Upper))
-        @test_broken boundary_identifiers(TensorGrid(g₁, g₄)) == (TensorGridBoundary{1,Lower}(),TensorGridBoundary{1,Upper}())
+        @test boundary_identifiers(TensorGrid(g₁, g₄)) == (TensorGridBoundary{1,Lower}(),TensorGridBoundary{1,Upper}())
     end
 
     @testset "boundary_grid" begin