From 6008e0f9fcb0d7c41a5d5595fbe3a9e30ab8a843 Mon Sep 17 00:00:00 2001 From: mcosovic Date: Thu, 29 Jul 2021 12:58:07 +0200 Subject: [PATCH] fixed test --- test/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 318756c..ae1d94d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -40,13 +40,13 @@ end d = [10 1 6.0 1.0; 200 3 4.0 1.0; 100 2 3.0 1.0] results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "vanillaDynamic", out = ["wls", "display"]) - @test results.gbp.mean[:, end] ≈ [1.0; 2.0; 1.0] + @test round.(results.gbp.mean[:, end], digits=3) ≈ [1.0; 2.0; 1.0] results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "efficientDynamic") - @test results.gbp.mean[:, end] ≈ [1.0; 2.0; 1.0] + @test round.(results.gbp.mean[:, end], digits=3) ≈ [1.0; 2.0; 1.0] results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "kahanDynamic") - @test results.gbp.mean[:, end] ≈ [1.0; 2.0; 1.0] + @test round.(results.gbp.mean[:, end], digits=3) ≈ [1.0; 2.0; 1.0] results, system = gbp("dataDynamic33_14.xlsx"; max = 1000, algorithm = "kahanDynamic", out = ["wls", "error"]) @test maximum(abs.(results.gbp.rmse - results.wls.rmse)) < 1e-8