diff test/Grids/tensor_grid_test.jl @ 1390:47931bef8471 bugfix/grids/complete_interface_impl

Implement `firstindex` and `lastindex` for `TensorGrid`
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 15 Aug 2023 22:39:34 +0200
parents c0208286234e
children a7afba63adb5
line wrap: on
line diff
--- a/test/Grids/tensor_grid_test.jl	Tue Aug 15 22:38:48 2023 +0200
+++ b/test/Grids/tensor_grid_test.jl	Tue Aug 15 22:39:34 2023 +0200
@@ -61,15 +61,15 @@
         end
 
         @testset "firstindex" begin
-            @test_broken firstindex(TensorGrid(g₁, g₂, g₃), 1) == 1
-            @test_broken firstindex(TensorGrid(g₁, g₂, g₃), 2) == 1
-            @test_broken firstindex(TensorGrid(g₁, g₂, g₃), 3) == 1
+            @test firstindex(TensorGrid(g₁, g₂, g₃), 1) == 1
+            @test firstindex(TensorGrid(g₁, g₂, g₃), 2) == 1
+            @test firstindex(TensorGrid(g₁, g₂, g₃), 3) == 1
         end
 
         @testset "lastindex" begin
-            @test_broken lastindex(TensorGrid(g₁, g₂, g₃), 1) == 11
-            @test_broken lastindex(TensorGrid(g₁, g₂, g₃), 2) == 6
-            @test_broken lastindex(TensorGrid(g₁, g₂, g₃), 3) == 10
+            @test lastindex(TensorGrid(g₁, g₂, g₃), 1) == 11
+            @test lastindex(TensorGrid(g₁, g₂, g₃), 2) == 6
+            @test lastindex(TensorGrid(g₁, g₂, g₃), 3) == 10
         end
     end