Hi all,

I'm having trouble testing new functions. Here is the runtests.jl file:

using BayesNets
using Base.Test

b = BayesNet([:A, :B, :C, :D, :E])
addEdge!(b, :A, :B)
setCPD!(b, :A, CPDs.Bernoulli(0.5))
setCPD!(b, :B, CPDs.Bernoulli(m->(m[:A] ? 0.5 : 0.45)))
setCPD!(b, :C, CPDs.Bernoulli(0.5))

@test length(b.names) == 5

addEdges!(b, [(:A, :C), (:D, :E), (:C, :D)])

d = randTable(b, numSamples = 5)
@test size(d, 1) == 5

removeEdge!(b, :A, :C)

@test length(b.dag.edges) == 3
*removeEdges!(b, [(:D, :E), (:C, :D)])*

@test length(b.dag.edges) == 1


I created and added the function in bold. However, when I execute julia 
runtests.jl and I get the following: ERROR: removeEdges! not defined.

I even exported the function in the file in which it was defined (export 
removeEdges!). Any suggestions? 


Thanks.

Reply via email to