diff test/Grids/equidistant_grid_test.jl @ 1901:edee7d677efb feature/grids/manifolds

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 01 Feb 2025 21:38:49 +0100
parents a93d2b668446 871f3f1decea
children 04c251bccbd4
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl	Mon Jan 27 08:56:39 2025 +0100
+++ b/test/Grids/equidistant_grid_test.jl	Sat Feb 01 21:38:49 2025 +0100
@@ -75,13 +75,16 @@
 
     @testset "boundary_indices" begin
         g = EquidistantGrid(0:0.1:1)
-        @test boundary_indices(g, LowerBoundary()) == (1,)
-        @test boundary_indices(g, UpperBoundary()) == (11,)
+        @test boundary_indices(g, LowerBoundary()) == 1
+        @test boundary_indices(g, UpperBoundary()) == 11
+
+        gf = collect(g)
+        @test gf[boundary_indices(g, LowerBoundary())] == gf[1]
+        @test gf[boundary_indices(g, UpperBoundary())] == gf[11]
 
         g = EquidistantGrid(2:0.1:10)
-        @test boundary_indices(g, LowerBoundary()) == (1,)
-        @test boundary_indices(g, UpperBoundary()) == (81,)
-
+        @test boundary_indices(g, LowerBoundary()) == 1
+        @test boundary_indices(g, UpperBoundary()) == 81
     end
 
     @testset "refine" begin