Skip to content

Commit

Permalink
test broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
stecrotti committed Oct 4, 2024
1 parent 2ecaef5 commit 4634a22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/bp.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
rng = MersenneTwister(0)

@testset "Broadcasting" begin
bp = rand_bp(rand_factor_graph(10, 5, 0.5), fill(2,10))
dummy(x, y) = y
z = rand(10)
@test dummy.(bp, z) == dummy.((bp,), z)
end

@testset "Basic example - no ϕ factors" begin
A = [0 1 1 0;
1 0 0 0;
Expand Down

0 comments on commit 4634a22

Please sign in to comment.