mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-19 01:48:47 +00:00
Small fix to runtests.jl
This commit is contained in:
+1
-34
@@ -18,39 +18,6 @@ facts("Testing if somebody used print, println(), @sprint in src directory") do
|
||||
end
|
||||
close(fil)
|
||||
end
|
||||
@fact lines_with_print => isempty
|
||||
@fact lines_with_print => isempty "Instead of println() use Logging.jl package"
|
||||
end
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
test_add_element()
|
||||
|
||||
|
||||
function test_get_element()
|
||||
m = new_model()
|
||||
nodes = Dict(1 => [0.0, 0.0, 0.0],
|
||||
2 => [1.0, 0.0, 0.0],
|
||||
3 => [0.0, 1.0, 0.0],
|
||||
4 => [0.0, 0.0, 1.0])
|
||||
add_nodes(m, nodes)
|
||||
el1 = Dict("element_type" => 0x6, "node_ids" => [1, 2, 3, 4])
|
||||
el2 = Dict("element_type" => 0x6, "node_ids" => [4, 3, 2, 1])
|
||||
elements = Dict(1 => el1, 2 => el2)
|
||||
#println(elements)
|
||||
add_elements(m, elements)
|
||||
#println(m)
|
||||
# get elements by element id
|
||||
els = get_elements(m, [1])
|
||||
#println(els)
|
||||
@test length(els) == 1
|
||||
@test 1 in keys(els)
|
||||
@test els[1]["element_type"] == 0x6
|
||||
@test els[1]["node_ids"] == [1, 2, 3, 4]
|
||||
end
|
||||
test_get_element()
|
||||
|
||||
|
||||
|
||||
include("test_xdmf.jl")
|
||||
include("solver_tests/test_elasticity_solver.jl")
|
||||
>>>>>>> 5aa575c722abcc33326d38fbadc860fc75448a87
|
||||
|
||||
|
||||
Reference in New Issue
Block a user