diff test/Grids/EquidistantGrid_test.jl @ 1092:c4ea28d904f5 refactor/grids

Fix grid indexing with CartesianIndex
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 27 Apr 2022 10:25:53 +0200
parents 9b40aeac4269
children
line wrap: on
line diff
--- a/test/Grids/EquidistantGrid_test.jl	Tue Apr 26 14:28:42 2022 +0200
+++ b/test/Grids/EquidistantGrid_test.jl	Wed Apr 27 10:25:53 2022 +0200
@@ -52,6 +52,8 @@
         @test g[5,3] == (0.0,7.11)
 
         @test g[4,2] == (-0.25,7.11/2)
+
+        @test g[CartesianIndex(1,3)] == (-1.0,7.11)
     end
 
     # restrict