Mercurial > repos > public > sbplib_julia
diff test/Grids/manifolds_test.jl @ 1579:14d79b13b54f feature/grids/manifolds
Add tests, fix bugs, add exports, for Simplex and friends
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 22:14:46 +0200 |
parents | 157c43966b06 |
children | fdee60ab8c4e |
line wrap: on
line diff
--- a/test/Grids/manifolds_test.jl Thu Apr 25 21:55:01 2024 +0200 +++ b/test/Grids/manifolds_test.jl Thu Apr 25 22:14:46 2024 +0200 @@ -32,6 +32,16 @@ @testset "Simplex" begin @test Simplex([1,2], [3,4]) isa Simplex{Int, 2} @test Simplex([1,2,3], [4,5,6],[1,1,1]) isa Simplex{Int, 3} + + @test verticies(Simplex([1,2], [3,4])) == ([1,2], [3,4]) + + @test unittriangle() isa Simplex{Float64,2} + @test verticies(unittriangle()) == ([0,0], [1,0], [0,1]) + + @test unittetrahedron() isa Simplex{Float64,3} + @test verticies(unittetrahedron()) == ([0,0,0], [1,0,0], [0,1,0],[0,0,1]) + + @test unitsimplex(4) isa Simplex{Float64,4} end @testset "Chart" begin