Mercurial > repos > public > sbplib_julia
diff test/Grids/tensor_grid_test.jl @ 1435:29adc06e5b56 feature/grids/curvilinear
Merge bugfix/grids/tensor_grid_length
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 07 Sep 2023 16:49:45 +0200 |
parents | 949fe47d65a4 |
children | 433245fd33c0 c0c5e0620b83 |
line wrap: on
line diff
--- a/test/Grids/tensor_grid_test.jl Thu Sep 07 09:03:07 2023 +0200 +++ b/test/Grids/tensor_grid_test.jl Thu Sep 07 16:49:45 2023 +0200 @@ -91,6 +91,12 @@ @test size(TensorGrid(g₁, g₄)) == (11,) @test size(TensorGrid(g₁, g₄, g₂)) == (11,6) + @test length(TensorGrid(g₁, g₂)) == 66 + @test length(TensorGrid(g₁, g₃)) == 110 + @test length(TensorGrid(g₁, g₂, g₃)) == 660 + @test length(TensorGrid(g₁, g₄)) == 11 + @test length(TensorGrid(g₁, g₄, g₂)) == 66 + @test Base.IteratorSize(TensorGrid(g₁, g₂)) == Base.HasShape{2}() @test Base.IteratorSize(TensorGrid(g₁, g₃)) == Base.HasShape{2}() @test Base.IteratorSize(TensorGrid(g₁, g₂, g₃)) == Base.HasShape{3}()