Mercurial > repos > public > sbplib_julia
changeset 2015:5c2448d6a201 feature/grids/geometry_functions tip
Structure tests a bit more
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 09 May 2025 15:57:38 +0200 |
parents | 6478c29effce |
children | |
files | test/Grids/geometry_test.jl |
diffstat | 1 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
diff -r 6478c29effce -r 5c2448d6a201 test/Grids/geometry_test.jl --- a/test/Grids/geometry_test.jl Fri May 09 07:42:21 2025 +0200 +++ b/test/Grids/geometry_test.jl Fri May 09 15:57:38 2025 +0200 @@ -203,17 +203,20 @@ end @testset "arc" begin - a = [0,0] - b = [1,0] - A = arc(a,b,1/2) - @test A(0) ≈ a atol=1e-15 - @test A(1) ≈ b - @test A(0.5) ≈ [0.5, -0.5] + @testset "Half circles around [0.5, 0.0]" begin + a = [0,0] + b = [1,0] - A = arc(a,b,-1/2) - @test A(0) ≈ a atol=1e-15 - @test A(1) ≈ b - @test A(0.5) ≈ [0.5, 0.5] + A = arc(a,b,1/2) + @test A(0) ≈ a atol=1e-15 + @test A(1) ≈ b + @test A(0.5) ≈ [0.5, -0.5] + + A = arc(a,b,-1/2) + @test A(0) ≈ a atol=1e-15 + @test A(1) ≈ b + @test A(0.5) ≈ [0.5, 0.5] + end @testset "Unit arc" begin A = arc([1,0],[0,1],1)