Skip to content

Commit

Permalink
Update generic tests for changes in AbstractAlgebra. (#912)
Browse files Browse the repository at this point in the history
* Update generic tests for changes in AbstractAlgebra.
  • Loading branch information
wbhart authored and thofma committed Dec 12, 2020
1 parent 021d9c9 commit 2c25457
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/generic/Matrix-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ end
M = randmat_with_rank(S, dim, -100:100)
b = rand(T, -100:100)

x, d = Generic.solve_fflu(M, b)
if isdefined(Generic, :can_solve_with_solution_fflu)
flag, x, d = Generic.can_solve_with_solution_fflu(M, b)
@test flag
else
x, d = Generic.solve_fflu(M, b)
end

@test divexact(M, d)*x == b
end
Expand All @@ -150,7 +155,12 @@ end
M = randmat_with_rank(S, dim, -100:100)
b = rand(T, -100:100)

x = Generic.solve_lu(M, b)
if isdefined(Generic, :can_solve_with_solution_lu)
flag, x = Generic.can_solve_with_solution_lu(M, b)
@test flag
else
x = Generic.solve_lu(M, b)
end

@test M*x == b
end
Expand Down

2 comments on commit 2c25457

@thofma
Copy link
Member

@thofma thofma commented on 2c25457 Dec 12, 2020

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/26281

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 v0.18.5 -m "<description of version>" 2c2545778fc15bbe8677d93a1355b8a1f421bc02
git push origin v0.18.5

Please sign in to comment.