Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1580:fdee60ab8c4e feature/grids/manifolds
Add ndims method for ParameterSpace
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 22:15:12 +0200 |
parents | 14d79b13b54f |
children | f77c5309dd2b |
comparison
equal
deleted
inserted
replaced
1579:14d79b13b54f | 1580:fdee60ab8c4e |
---|---|
3 using Sbplib.Grids | 3 using Sbplib.Grids |
4 using Sbplib.RegionIndices | 4 using Sbplib.RegionIndices |
5 using Sbplib.LazyTensors | 5 using Sbplib.LazyTensors |
6 | 6 |
7 # using StaticArrays | 7 # using StaticArrays |
8 | |
9 @testset "ParameterSpace" begin | |
10 @test ndims(HyperBox([1,1], [2,2])) == 2 | |
11 @test ndims(unittetrahedron()) == 3 | |
12 end | |
8 | 13 |
9 @testset "HyperBox" begin | 14 @testset "HyperBox" begin |
10 @test HyperBox([1,1], [2,2]) isa HyperBox{Int, 2} | 15 @test HyperBox([1,1], [2,2]) isa HyperBox{Int, 2} |
11 | 16 |
12 @test limits(HyperBox([1,2], [3,4])) == ([1,2], [3,4]) | 17 @test limits(HyperBox([1,2], [3,4])) == ([1,2], [3,4]) |