diff Grids/test/runtests.jl @ 324:047dee8efaef

Grids.EquidistantGrid: Add constructor for 1d grid
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 24 Sep 2020 21:28:28 +0200
parents 4c62d0253bd4
children
line wrap: on
line diff
--- a/Grids/test/runtests.jl	Thu Sep 24 21:04:25 2020 +0200
+++ b/Grids/test/runtests.jl	Thu Sep 24 21:28:28 2020 +0200
@@ -1,4 +1,8 @@
 using Grids
 using Test
 
-@test_broken false
+@testset "EquidistantGrid" begin
+    @test EquidistantGrid(4,0,1) isa EquidistantGrid
+    @test dimension(EquidistantGrid(4,0,1)) == 1
+    @test EquidistantGrid(4,0,1) == EquidistantGrid((4,),(0,),(1,))
+end