changeset 1398:447833be2ecc bugfix/grids/complete_interface_impl

Add tests for first and last index of equidistant grid
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Aug 2023 08:59:47 +0200
parents 60857d8338cb
children adbdbf1c3480
files test/Grids/equidistant_grid_test.jl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl	Tue Aug 15 22:45:58 2023 +0200
+++ b/test/Grids/equidistant_grid_test.jl	Tue Aug 22 08:59:47 2023 +0200
@@ -19,6 +19,9 @@
         @test g[end] == 10.0
 
         @test all(eachindex(g) .== 1:101)
+
+        @test firstindex(g) == 1
+        @test lastindex(g) == 101
     end
 
     @testset "Iterator interface" begin