Skip to content

Commit

Permalink
Fix test and build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasColthurst committed Jun 12, 2024
1 parent fd18b7e commit 21d8b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cxx/emissions/sometimes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ class Sometimes : public Emission<SampleType> {
Sometimes() : bb(nullptr) {};

void incorporate(const std::pair<SampleType, SampleType>& x) {
++N;
++(this->N);
bb.incorporate(x.first != x.second);
if (x.first != x.second) {
be.incorporate(x);
}
}

void unincorporate(const std::pair<SampleType, SampleType>& x) {
--N;
--(this->N);
bb.unincorporate(x.first != x.second);
if (x.first != x.second) {
be.unincorporate(x);
Expand Down
2 changes: 0 additions & 2 deletions cxx/emissions/sometimes_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,5 @@ BOOST_AUTO_TEST_CASE(test_simple) {
BOOST_TEST(sbf.logp(std::make_pair<bool, bool>(true, false)) < 0.0);

std::mt19937 prng;
BOOST_TEST(sbf.sample_corrupted(false, &prng));

BOOST_TEST(sbf.propose_clean({true, true, false}, &prng));
}

0 comments on commit 21d8b36

Please sign in to comment.