From ba3faaaf8278c3fc44b770d1b12163185570137d Mon Sep 17 00:00:00 2001 From: Lionel Zoubritzky Date: Tue, 7 Jun 2022 15:01:58 +0200 Subject: [PATCH] Ensure tests pass regardless of random seed --- test/runtests.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index e08c58c..782c294 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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