From f2369aea3ad5576c03aea2e57cb274c87edb70e5 Mon Sep 17 00:00:00 2001 From: Stan Jenkins Date: Tue, 2 Jan 2024 17:07:05 -0500 Subject: [PATCH] [Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1 --- .../services/pathfinder/normal_glm_test.cpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/test/unit/services/pathfinder/normal_glm_test.cpp b/src/test/unit/services/pathfinder/normal_glm_test.cpp index 5fedd10487..9a93141410 100644 --- a/src/test/unit/services/pathfinder/normal_glm_test.cpp +++ b/src/test/unit/services/pathfinder/normal_glm_test.cpp @@ -168,12 +168,13 @@ TEST_F(ServicesPathfinderGLM, single_noreturnlp) { init, parameter, diagnostics, return_lp); Eigen::MatrixXd param_vals = std::move(parameter.values_); for (Eigen::Index i = 0; i < num_elbo_draws; ++i) { - EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws + i))) << "row: " << (num_draws + i); + EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws + i))) + << "row: " << (num_draws + i); } for (Eigen::Index i = 0; i < (num_draws - num_elbo_draws); ++i) { - EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_elbo_draws + i))) << "row: " << (num_draws + num_elbo_draws + i); + EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_elbo_draws + i))) + << "row: " << (num_draws + num_elbo_draws + i); } - } TEST_F(ServicesPathfinderGLM, multi) { @@ -258,8 +259,6 @@ TEST_F(ServicesPathfinderGLM, multi) { } } - - TEST_F(ServicesPathfinderGLM, multi_noresample) { constexpr unsigned int seed = 0; constexpr unsigned int chain = 1; @@ -306,7 +305,7 @@ TEST_F(ServicesPathfinderGLM, multi_noresample) { Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, 0, ", ", ", ", "\n", "", "", ""); EXPECT_EQ(param_vals.rows(), 10); - EXPECT_EQ(param_vals.cols(), 8000); + EXPECT_EQ(param_vals.cols(), 8000); } TEST_F(ServicesPathfinderGLM, multi_noresample_noreturnlp) { @@ -359,10 +358,11 @@ TEST_F(ServicesPathfinderGLM, multi_noresample_noreturnlp) { for (Eigen::Index paths_i = 0; paths_i < num_paths; ++paths_i) { // Iterate over each set of results from the single pathfinders for (Eigen::Index i = 0; i < num_elbo_draws; ++i) { - EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i))); + EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i))); } for (Eigen::Index i = 0; i < (num_draws - num_elbo_draws); ++i) { - EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i))); + EXPECT_TRUE(std::isnan( + param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i))); } } } @@ -417,15 +417,15 @@ TEST_F(ServicesPathfinderGLM, multi_resample_noreturnlp) { for (Eigen::Index paths_i = 0; paths_i < num_paths; ++paths_i) { // Iterate over each set of results from the single pathfinders for (Eigen::Index i = 0; i < num_elbo_draws; ++i) { - EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i))); + EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i))); } for (Eigen::Index i = 0; i < (num_draws - num_elbo_draws); ++i) { - EXPECT_TRUE(std::isnan(param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i))); + EXPECT_TRUE(std::isnan( + param_vals.coeff(1, num_draws * paths_i + num_elbo_draws + i))); } } } - TEST_F(ServicesPathfinderGLM, multi_noresample_returnlp) { constexpr unsigned int seed = 0; constexpr unsigned int chain = 1; @@ -476,7 +476,7 @@ TEST_F(ServicesPathfinderGLM, multi_noresample_returnlp) { for (Eigen::Index paths_i = 0; paths_i < num_paths; ++paths_i) { // Iterate over each set of results from the single pathfinders for (Eigen::Index i = 0; i < num_draws; ++i) { - EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i))); + EXPECT_FALSE(std::isnan(param_vals.coeff(1, num_draws * paths_i + i))); } } }