comparison test/Grids/parameter_space_test.jl @ 1995:e6dbd4bec6cc feature/grids/parameter_spaces/in

Fix variable name in test
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 25 Apr 2025 08:16:06 +0200
parents ca6d898d3a38
children
comparison
equal deleted inserted replaced
1994:55e5d9f921ac 1995:e6dbd4bec6cc
106 @test [0.6, 0.6] ∉ T₂ 106 @test [0.6, 0.6] ∉ T₂
107 @test [-0.1, 0.1] ∉ T₂ 107 @test [-0.1, 0.1] ∉ T₂
108 end 108 end
109 109
110 @testset "3D" begin 110 @testset "3D" begin
111 tetrahedron = Simplex([0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]) 111 T₃ = Simplex([0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0])
112 @test [0.1, 0.1, 0.1] ∈ tetrahedron 112 @test [0.1, 0.1, 0.1] ∈ T₃
113 @test [0.0, 0.0, 0.0] ∈ tetrahedron 113 @test [0.0, 0.0, 0.0] ∈ T₃
114 @test [1.0, 0.0, 0.0] ∈ tetrahedron 114 @test [1.0, 0.0, 0.0] ∈ T₃
115 @test [0.25, 0.25, 0.25] ∈ tetrahedron 115 @test [0.25, 0.25, 0.25] ∈ T₃
116 @test [0.5, 0.5, 0.0] ∈ tetrahedron 116 @test [0.5, 0.5, 0.0] ∈ T₃
117 @test [0.3, 0.3, 0.3] ∈ tetrahedron 117 @test [0.3, 0.3, 0.3] ∈ T₃
118 118
119 @test [0.5, 0.5, 1.0] ∉ tetrahedron 119 @test [0.5, 0.5, 1.0] ∉ T₃
120 @test [0.3, 0.3, 0.5] ∉ tetrahedron 120 @test [0.3, 0.3, 0.5] ∉ T₃
121 end 121 end
122 end 122 end
123 end 123 end