Skip to content

Commit

Permalink
Repairing coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvarga committed Jun 15, 2020
1 parent 7777485 commit cbbd9d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_pmtools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ W = zeros(3,3);
A2,E2,B2,C2,D2 = spm2ls(D,D,D,W,atol = 1.e-7, minimal=true)
@test D2 -D

D = rand(3,3);
W = zeros(3,3,1);
A2,E2,B2,C2,D2 = spm2ls(D,D,D,W,atol = 1.e-7, minimal=true)
@test D2 -D

A2,E2,B2,C2,D2 = spm2ls(D,D,D,W,atol = 1.e-7)
@test -C2*inv(A2)*B2+D2 -D && iszero(E2)

Expand All @@ -165,6 +170,12 @@ W = zeros(3,3);
sys = spm2lps(D,D,D,W,atol = 1.e-7, minimal=true)
@test sys[7] -D && sys[8] 0*D

# simple test
D = rand(3,3);
W = zeros(3,3,1);
sys = spm2lps(D,D,D,W,atol = 1.e-7, minimal=true)
@test sys[7] -D && sys[8] 0*D

#
D = rand(3,3,2); V = zeros(3,3,1); V[:,:,1] = Matrix{eltype(V)}(I,3,3); W = zeros(3,3);
A2,E2,B2,C2,D2 = spm2ls(D,D,V,W,atol = 1.e-7, minimal=true)
Expand Down

2 comments on commit cbbd9d7

@andreasvarga
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/16411

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.2 -m "<description of version>" cbbd9d736516a69d6bf55f9ad9f41bca68fdcee3
git push origin v1.0.2

Please sign in to comment.