Skip to content

Commit

Permalink
Ensure tests pass regardless of random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Liozou committed Jun 7, 2022
1 parent 56c0f73 commit ba3faaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ end
@testset "dixon_solve and rational_solve" begin
for N in 1:5
for n in 1:5
A = sparse(Int.(rand(Int8, n, n)))
_A = Int.(rand(Int8, n, n))
A = sparse(Int.(_A) .+ 300*LinearAlgebra.I(n)) # ensure the system is invertible
Y = Int.(rand(Int8, n, N))
result = dixon_solve(Val(N), A, Y)
@test A*result == Y
Expand Down

0 comments on commit ba3faaa

Please sign in to comment.