Skip to content

Commit

Permalink
test integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Nov 17, 2017
1 parent b0268f2 commit b828a68
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ push!(test_files, "test_elements.jl")
push!(test_files, "test_elements_2.jl")
push!(test_files, "test_fields.jl")
push!(test_files, "test_integration_points.jl")
push!(test_files, "test_integrate.jl")
push!(test_files, "test_sparse.jl")

@testset "FEMBase.jl" begin
Expand Down
14 changes: 14 additions & 0 deletions test/test_integrate.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/FEMBase.jl/blob/master/LICENSE

using FEMBase
using Base.Test

@testset "test integrate" begin
element = Element(Seg2, [1, 2])
ips1 = get_integration_points(element)
ips2 = get_integration_points(element, 1)
@test length(ips1) == 1
@test length(ips2) == 2
end

0 comments on commit b828a68

Please sign in to comment.