Skip to content

Commit 6008e0f

Browse files
committed
fixed test
1 parent 776c593 commit 6008e0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ end
4040
d = [10 1 6.0 1.0; 200 3 4.0 1.0; 100 2 3.0 1.0]
4141

4242
results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "vanillaDynamic", out = ["wls", "display"])
43-
@test results.gbp.mean[:, end] [1.0; 2.0; 1.0]
43+
@test round.(results.gbp.mean[:, end], digits=3) [1.0; 2.0; 1.0]
4444

4545
results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "efficientDynamic")
46-
@test results.gbp.mean[:, end] [1.0; 2.0; 1.0]
46+
@test round.(results.gbp.mean[:, end], digits=3) [1.0; 2.0; 1.0]
4747

4848
results, system = gbp(H, z, v, d; max = 2000, damp = 5, algorithm = "kahanDynamic")
49-
@test results.gbp.mean[:, end] [1.0; 2.0; 1.0]
49+
@test round.(results.gbp.mean[:, end], digits=3) [1.0; 2.0; 1.0]
5050

5151
results, system = gbp("dataDynamic33_14.xlsx"; max = 1000, algorithm = "kahanDynamic", out = ["wls", "error"])
5252
@test maximum(abs.(results.gbp.rmse - results.wls.rmse)) < 1e-8

0 commit comments

Comments
 (0)