mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-18 03:19:21 +00:00
23 lines
696 B
Julia
23 lines
696 B
Julia
# This file is a part of JuliaFEM.
|
|
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
|
|
|
|
using JuliaFEM
|
|
using JuliaFEM.Test
|
|
|
|
@testset "geometry missing" begin
|
|
el = Element(Quad4, [1, 2, 3, 4])
|
|
pr = Problem(Elasticity, "problem", 2)
|
|
# this throws KeyError: geometry not found.
|
|
# it's descriptive enough to give hint to user
|
|
# what went wrong
|
|
@test_throws KeyError assemble!(pr, el)
|
|
end
|
|
|
|
@testset "connectivity information missing" begin
|
|
el = Element(Quad4)
|
|
nodes = Vector{Float64}[[0,0],[1,0],[1,1],[0,1]]
|
|
update!(el, "geometry", nodes)
|
|
pr = Problem(Elasticity, "problem", 2)
|
|
@test_throws Exception assemble!(pr, el)
|
|
end
|