2016-05-28 21:39:29 +03:00
|
|
|
# This file is a part of JuliaFEM.
|
|
|
|
|
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
|
|
|
|
|
|
|
|
|
|
using JuliaFEM
|
2016-07-10 04:26:21 +03:00
|
|
|
using JuliaFEM.Testing
|
2016-05-28 21:39:29 +03:00
|
|
|
|
|
|
|
|
@testset "geometry missing" begin
|
|
|
|
|
el = Element(Quad4, [1, 2, 3, 4])
|
|
|
|
|
pr = Problem(Elasticity, "problem", 2)
|
2017-08-17 16:27:00 +03:00
|
|
|
add_elements!(pr, [el])
|
2016-05-28 21:39:29 +03:00
|
|
|
# this throws KeyError: geometry not found.
|
|
|
|
|
# it's descriptive enough to give hint to user
|
|
|
|
|
# what went wrong
|
2017-08-17 16:27:00 +03:00
|
|
|
@test_throws KeyError assemble!(pr)
|
2016-05-28 21:39:29 +03:00
|
|
|
end
|