Mercurial > repos > public > sbplib_julia
comparison test/Grids/tensor_grid_test.jl @ 1441:c0c5e0620b83 bugfix/grids/tensor_grid_length
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 22 Nov 2023 17:51:37 +0100 |
parents | 949fe47d65a4 66ad232e45a1 |
children | 0322c181a1cd 88e738d807cb |
comparison
equal
deleted
inserted
replaced
1423:48e16efaac7a | 1441:c0c5e0620b83 |
---|---|
83 @test eltype(TensorGrid(g₁, g₃)) == SVector{2,Float64} | 83 @test eltype(TensorGrid(g₁, g₃)) == SVector{2,Float64} |
84 @test eltype(TensorGrid(g₁, g₂, g₃)) == SVector{3,Float64} | 84 @test eltype(TensorGrid(g₁, g₂, g₃)) == SVector{3,Float64} |
85 @test eltype(TensorGrid(g₁, g₄)) == SVector{3,Float64} | 85 @test eltype(TensorGrid(g₁, g₄)) == SVector{3,Float64} |
86 @test eltype(TensorGrid(g₁, g₄, g₂)) == SVector{4,Float64} | 86 @test eltype(TensorGrid(g₁, g₄, g₂)) == SVector{4,Float64} |
87 | 87 |
88 @test eltype(typeof(TensorGrid(g₁, g₂))) == SVector{2,Float64} | |
89 @test eltype(typeof(TensorGrid(g₁, g₃))) == SVector{2,Float64} | |
90 @test eltype(typeof(TensorGrid(g₁, g₂, g₃))) == SVector{3,Float64} | |
91 @test eltype(typeof(TensorGrid(g₁, g₄))) == SVector{3,Float64} | |
92 @test eltype(typeof(TensorGrid(g₁, g₄, g₂))) == SVector{4,Float64} | |
93 | |
88 @test size(TensorGrid(g₁, g₂)) == (11,6) | 94 @test size(TensorGrid(g₁, g₂)) == (11,6) |
89 @test size(TensorGrid(g₁, g₃)) == (11,10) | 95 @test size(TensorGrid(g₁, g₃)) == (11,10) |
90 @test size(TensorGrid(g₁, g₂, g₃)) == (11,6,10) | 96 @test size(TensorGrid(g₁, g₂, g₃)) == (11,6,10) |
91 @test size(TensorGrid(g₁, g₄)) == (11,) | 97 @test size(TensorGrid(g₁, g₄)) == (11,) |
92 @test size(TensorGrid(g₁, g₄, g₂)) == (11,6) | 98 @test size(TensorGrid(g₁, g₄, g₂)) == (11,6) |
99 | |
100 @test size(TensorGrid(g₁, g₂, g₃),1) == 11 | |
101 @test size(TensorGrid(g₁, g₂, g₃),2) == 6 | |
102 @test size(TensorGrid(g₁, g₂, g₃),3) == 10 | |
103 @test size(TensorGrid(g₁, g₄, g₂),1) == 11 | |
104 @test size(TensorGrid(g₁, g₄, g₂),2) == 6 | |
93 | 105 |
94 @test length(TensorGrid(g₁, g₂)) == 66 | 106 @test length(TensorGrid(g₁, g₂)) == 66 |
95 @test length(TensorGrid(g₁, g₃)) == 110 | 107 @test length(TensorGrid(g₁, g₃)) == 110 |
96 @test length(TensorGrid(g₁, g₂, g₃)) == 660 | 108 @test length(TensorGrid(g₁, g₂, g₃)) == 660 |
97 @test length(TensorGrid(g₁, g₄)) == 11 | 109 @test length(TensorGrid(g₁, g₄)) == 11 |