diff test/Grids/equidistant_grid_test.jl @ 1595:611ae2308aa1 feature/boundary_conditions

Add orthogonal_grid
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Sun, 26 May 2024 17:35:52 -0700
parents efe1fc4cb6b0
children 3e7438e2a033
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl	Sat May 25 16:07:10 2024 -0700
+++ b/test/Grids/equidistant_grid_test.jl	Sun May 26 17:35:52 2024 -0700
@@ -79,6 +79,12 @@
 
     end
 
+    @testset "orthogonal_grid" begin
+        g = EquidistantGrid(0:0.1:1)
+        @test orthogonal_grid(g, Lower()) == g
+        @test orthogonal_grid(g, Upper()) == g
+    end
+
     @testset "refine" begin
         g = EquidistantGrid(0:0.1:1)
         @test refine(g, 1) == g