From 6963e783b7a274e44c17d46c50d188c52b0689f2 Mon Sep 17 00:00:00 2001 From: Emily Fertig Date: Tue, 13 Aug 2024 18:26:59 +0000 Subject: [PATCH] Decrease number of HIRM samples to avoid timeout. --- cxx/hirm_test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cxx/hirm_test.cc b/cxx/hirm_test.cc index 208f083..427f2df 100644 --- a/cxx/hirm_test.cc +++ b/cxx/hirm_test.cc @@ -90,21 +90,21 @@ BOOST_AUTO_TEST_CASE(test_hirm_sample) { std::mt19937 prng; HIRM hirm(schema2, &prng); - hirm.sample_and_incorporate(&prng, 20); + hirm.sample_and_incorporate(&prng, 5); BOOST_TEST( std::get*>(hirm.get_relation("R2"))->get_data().size() == - 20); + 5); BOOST_TEST( std::get*>(hirm.get_relation("R3"))->get_data().size() == - 20); + 5); BOOST_TEST( std::get*>(hirm.get_relation("R5"))->get_data().size() == - 20); + 5); int nobs_R4 = std::get*>(hirm.get_relation("R4"))->get_data().size(); BOOST_TEST(nobs_R4 > 0); - BOOST_TEST(nobs_R4 <= 20); + BOOST_TEST(nobs_R4 <= 5); BOOST_TEST(hirm.logp_score() < 0.0); }