From 7e8e9c0b6090599cf3c18a6fa2d046fb615a06dc Mon Sep 17 00:00:00 2001 From: Bart van Erp <44952318+bartvanerp@users.noreply.github.com> Date: Wed, 22 Nov 2023 09:03:48 +0100 Subject: [PATCH] Update fastcholesky_tests.jl --- test/fastcholesky_tests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fastcholesky_tests.jl b/test/fastcholesky_tests.jl index 9617230..2af3f05 100644 --- a/test/fastcholesky_tests.jl +++ b/test/fastcholesky_tests.jl @@ -59,8 +59,8 @@ end @test chollogdet(I) ≈ zero @test all(cholinv_logdet(one * I) .≈ (one * I, zero)) @test_throws ArgumentError chollogdet(two * I) - @test_throws ErrorException fastcholesky(I) - @test_throws ErrorException fastcholesky!(I) + @test fastcholesky(I) ≈ I + @test fastcholesky!(I) ≈ I end end @@ -91,4 +91,4 @@ end @test inv(fastcholesky(F)) * F ≈ Diagonal(ones(4)) rtol=1e-4 @test cholinv(F) * F ≈ Diagonal(ones(4)) rtol=1e-4 @test fastcholesky(F).L ≈ cholesky(F).L -end \ No newline at end of file +end