Fix test with new random behavior
parent
8e81890f9b
commit
bf153b31ae
|
@ -97,8 +97,8 @@ TEST(DiscreteBayesNet, Asia)
|
||||||
// now sample from it
|
// now sample from it
|
||||||
DiscreteFactor::Values expectedSample;
|
DiscreteFactor::Values expectedSample;
|
||||||
SETDEBUG("DiscreteConditional::sample", false);
|
SETDEBUG("DiscreteConditional::sample", false);
|
||||||
insert(expectedSample)(A.first, 1)(D.first, 1)(X.first, 0)(T.first, 0)(
|
insert(expectedSample)(A.first, 1)(D.first, 1)(X.first, 1)(T.first, 0)(
|
||||||
S.first, 1)(E.first, 0)(L.first, 0)(B.first, 1);
|
S.first, 1)(E.first, 1)(L.first, 1)(B.first, 0);
|
||||||
DiscreteFactor::sharedValues actualSample = chordal2->sample();
|
DiscreteFactor::sharedValues actualSample = chordal2->sample();
|
||||||
EXPECT(assert_equal(expectedSample, *actualSample));
|
EXPECT(assert_equal(expectedSample, *actualSample));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue