From 0f853d9611aed7122c5871995ef8640437accaa1 Mon Sep 17 00:00:00 2001 From: Andrew Pulsipher Date: Mon, 25 Nov 2024 11:10:42 -0700 Subject: [PATCH] Add test of correct and error print burning in tests/00-lfmcmc.cpp --- tests/00-lfmcmc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/00-lfmcmc.cpp b/tests/00-lfmcmc.cpp index b793f02e..9a9dac24 100644 --- a/tests/00-lfmcmc.cpp +++ b/tests/00-lfmcmc.cpp @@ -73,6 +73,8 @@ EPIWORLD_TEST_CASE("LFMCMC", "[Basic example]") { std::vector expected = {5.0, 1.5}; REQUIRE_THAT(params_means, Catch::Approx(expected).margin(0.5)); REQUIRE_THAT(stats_means, Catch::Approx(expected).margin(0.5)); + REQUIRE_THROWS(model.print(200000)); + REQUIRE_NOTHROW(model.print(50000)); #endif #ifndef CATCH_CONFIG_MAIN