Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
naseweisssss and github-actions[bot] authored Nov 17, 2024
1 parent cae8914 commit 966e4d1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/experimental/ProbabilisticGraphicalModels/bayesnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,11 @@ using JuliaBUGS.ProbabilisticGraphicalModels:
add_stochastic_vertex!(bn, :C, Normal(0, 1), false)
add_edge!(bn, :A, :B)
add_edge!(bn, :B, :C)

@testset "Corner Case: X or Y in Z" begin
# Test case where X is in Z
@test is_conditionally_independent(bn, :A, :C, [:A]) # A ⊥ C | A

# Test case where Y is in Z
@test is_conditionally_independent(bn, :A, :C, [:C]) # A ⊥ C | C

# Test case where both X and Y are in Z
@test is_conditionally_independent(bn, :A, :C, [:A, :C]) # A ⊥ C | A, C
end
Expand Down

0 comments on commit 966e4d1

Please sign in to comment.