Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
1d test for BasisInfo
  • Loading branch information
ahojukka5 committed Aug 13, 2017
1 parent b873f77 commit 442a38b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_math.jl
Expand Up @@ -52,6 +52,12 @@ end
end

@testset "test BasisInfo" begin
B = BasisInfo(Seg2)
X = ((0.0,), (1.1))
xi = (0.0,)
eval_basis!(B, X, xi)
@test isapprox(B.invJ, inv(B.J))
@test isapprox(B.detJ, det(B.J))
B = BasisInfo(Quad4)
X = ((0.0,0.0), (1.1,0.0), (1.0,1.0), (0.0,1.0))
xi = (0.0,0.0)
Expand Down

0 comments on commit 442a38b

Please sign in to comment.