Skip to content

Commit

Permalink
Merge pull request #52 from invenia/wct/fix-tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
Will Tebbutt committed Sep 20, 2022
2 parents 9ce3d6c + bc54692 commit 51c8bf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/independent_mogp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
@test isapprox(
logpdf(post_fx, y_test), logpdf(post_fx1, y_1_test) + logpdf(post_fx2, y_2_test)
)
@test marginals(post_fx) == vcat(marginals(post_fx1), marginals(post_fx2))
@test all(
isapprox.(marginals(post_fx), vcat(marginals(post_fx1), marginals(post_fx2)))
)
@test isapprox(mean(post_fx), vcat(mean(post_fx1), mean(post_fx2)))
@test isapprox(var(post_fx), vcat(var(post_fx1), var(post_fx2)))
@test length(rand(rng, post_fx)) == length(f.fs) * length(x_test_mo.x)
Expand Down

0 comments on commit 51c8bf7

Please sign in to comment.