comparison test/Grids/geometry_test.jl @ 1982:486b3c6f919e feature/grids/geometry_functions

Throw better error type for transfinite interpolation check
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Feb 2025 22:50:26 +0100
parents 270675bb97be
children cf0fa2967361
comparison
equal deleted inserted replaced
1981:ea04a542a526 1982:486b3c6f919e
228 @test check_transfiniteinterpolation(Bool, s1) == false 228 @test check_transfiniteinterpolation(Bool, s1) == false
229 @test check_transfiniteinterpolation(Bool, s2) == false 229 @test check_transfiniteinterpolation(Bool, s2) == false
230 @test check_transfiniteinterpolation(Bool, s3) == false 230 @test check_transfiniteinterpolation(Bool, s3) == false
231 @test check_transfiniteinterpolation(Bool, s4) == false 231 @test check_transfiniteinterpolation(Bool, s4) == false
232 232
233 @test_throws Exception check_transfiniteinterpolation(s1) 233 @test_throws ArgumentError check_transfiniteinterpolation(s1)
234 @test_throws Exception check_transfiniteinterpolation(s2) 234 @test_throws ArgumentError check_transfiniteinterpolation(s2)
235 @test_throws Exception check_transfiniteinterpolation(s3) 235 @test_throws ArgumentError check_transfiniteinterpolation(s3)
236 @test_throws Exception check_transfiniteinterpolation(s4) 236 @test_throws ArgumentError check_transfiniteinterpolation(s4)
237 end 237 end
238 238
239 @testset "Grids.jacobian" begin 239 @testset "Grids.jacobian" begin
240 cs = polygon_edges([0,0],[1,0],[1,1],[0,1]) 240 cs = polygon_edges([0,0],[1,0],[1,1],[0,1])
241 ti = TransfiniteInterpolationSurface(cs...) 241 ti = TransfiniteInterpolationSurface(cs...)