Skip to content

Commit

Permalink
Tuning some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvarga committed Nov 8, 2021
1 parent 0ced9ce commit f02835b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test_pmapps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -435,31 +435,31 @@ P = rand(Ty,2,3,5);
P1 = rand(Ty,3,2,5);
abstol = sqrt(eps(one(real(Ty))))

@time info, iz, ip = pmkstruct(P,CF1=false, fast = fast)
@time info, iz, ip = pmkstruct(P,CF1=false, fast = fast, atol = abstol)
@test (info.rki, info.lki,info.id, info.nf, info.nrank) == ([8], [], [], 0, 2) && iz == [] && ip ==[4, 4]

@time info, iz, ip = pmkstruct(P,CF1=true, fast = fast)
@time info, iz, ip = pmkstruct(P,CF1=true, fast = fast, atol = abstol)
@test (info.rki, info.lki,info.id, info.nf, info.nrank) == ([8], [], [], 0, 2) && iz == [] && ip ==[4, 4]

@time info, iz, ip = pmkstruct(P,grade=5, CF1=false, fast = fast)
@time info, iz, ip = pmkstruct(P,grade=5, CF1=false, fast = fast, atol = abstol)
@test (info.rki, info.lki,info.id, info.nf, info.nrank) == ([8], [], [1, 1], 0, 2) && iz == [] && ip ==[4, 4]

@time info, iz, ip = pmkstruct(P,grade=5,CF1=true, fast = fast)
@time info, iz, ip = pmkstruct(P,grade=5,CF1=true, fast = fast, atol = abstol)
@test (info.rki, info.lki,info.id, info.nf, info.nrank) == ([8], [], [1, 1], 0, 2) && iz == [] && ip ==[4, 4]

@time val, info = pmeigvals(P, fast = fast)
@time val, info = pmeigvals(P, fast = fast, atol = abstol)
@test val == Ty[] && (info.rki, info.lki,info.id, info.nf,info.nrank) == ([8], [], [], 0, 2)

@time val, info = pmeigvals(P,CF1=true,grade = 5, fast = fast)
@time val, info = pmeigvals(P,CF1=true,grade = 5, fast = fast, atol = abstol)
@test val == [Inf, Inf] && (info.rki, info.lki,info.id, info.nf,info.nrank) == ([8], [], [1, 1], 0, 2)

@time val, info = pmeigvals(P,CF1=false, grade = 5, fast = fast)
@time val, info = pmeigvals(P,CF1=false, grade = 5, fast = fast, atol = abstol)
@test val == [Inf, Inf] && (info.rki, info.lki,info.id, info.nf,info.nrank) == ([8], [], [1, 1], 0, 2)

@time val, iz, info = pmzeros(P, fast = fast, atol = abstol)
@test val == Ty[] && iz == [] && (info.rki, info.lki,info.id, info.nf,info.nrank) == ([8], [], [], 0, 2)

@time val, ip, id = pmpoles(P,CF1=false, fast = fast)
@time val, ip, id = pmpoles(P,CF1=false, fast = fast, atol = abstol)
@test val == [Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf] && ip == [4, 4] && id == [4, 8, 8]

@time val, ip, id = pmpoles(P,CF1=true, fast = fast, atol = abstol)
Expand All @@ -468,7 +468,7 @@ abstol = sqrt(eps(one(real(Ty))))
@time val, iz, info = pmzeros1(P, fast = fast, atol = abstol)
@test val == Ty[] && iz == [] && (info.rki, info.lki,info.id, info.nf,info.nrank) == ([8], [], [], 0, 2)

@time val, iz, info = pmzeros1(P1, fast = fast)
@time val, iz, info = pmzeros1(P1, fast = fast, atol = abstol)
@test val == Ty[] && iz == [] && (info.rki, info.lki,info.id, info.nf,info.nrank) == ([], [8], [], 0, 2)

@time val, ip, id = pmpoles1(P, fast = fast, atol = abstol)
Expand Down

2 comments on commit f02835b

@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/48447

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.6.7 -m "<description of version>" f02835bc05df001f4f316085a5dfb51cb56b6162
git push origin v1.6.7

Please sign in to comment.