From 80bea768a3a9745c31b3332207de57ca635c2a7f Mon Sep 17 00:00:00 2001 From: Geoffroy Leconte Date: Tue, 7 Jun 2022 15:51:57 -0400 Subject: [PATCH] update tests usymlq and usymqr --- test/test_usymlq.jl | 6 +++--- test/test_usymqr.jl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_usymlq.jl b/test/test_usymlq.jl index bff3dacc8..c94ae097e 100644 --- a/test/test_usymlq.jl +++ b/test/test_usymlq.jl @@ -98,10 +98,10 @@ @test(stats.solved) # test callback function - A, b = over_consistent(FC=FC) + A, b = sparse_laplacian(FC=FC) + c = copy(b) solver = UsymlqSolver(A, b) - c = similar(b, size(A, 2)) - tol = 1.0e-1 + tol = 1.0 cb_n2 = TestCallbackN2(A, b, tol = tol) usymlq!(solver, A, b, c, atol = 0.0, rtol = 0.0, callback = solver -> cb_n2(solver)) @test solver.stats.status == "user-requested exit" diff --git a/test/test_usymqr.jl b/test/test_usymqr.jl index d07193586..63e33bd70 100644 --- a/test/test_usymqr.jl +++ b/test/test_usymqr.jl @@ -116,10 +116,10 @@ @test(stats.solved) # test callback function - A, b = over_consistent(FC=FC) + A, b = sparse_laplacian(FC=FC) + c = copy(b) solver = UsymqrSolver(A, b) - c = similar(b, size(A, 2)) - tol = 1.0e-1 + tol = 1.0e0 cb_n2 = TestCallbackN2(A, b, tol = tol) usymqr!(solver, A, b, c, atol = 0.0, rtol = 0.0, callback = solver -> cb_n2(solver)) @test solver.stats.status == "user-requested exit"