diff --git a/tests/modules/testRadio.cpp b/tests/modules/testRadio.cpp index 1a5e92afa43055bbaa9835a2fed1212c6c37c093..2260107939952a45b0f8d7bdb122f67fc1de082d 100644 --- a/tests/modules/testRadio.cpp +++ b/tests/modules/testRadio.cpp @@ -552,20 +552,21 @@ TEST_CASE("Propagators") { // store the outcome of the Propagate method to paths_ auto const paths_ = SP.propagate(p0, p10, 1_m); - // perform checks to paths_ components - for (auto const& path : paths_) { - CHECK((path.propagation_time_ / 1_s) - - (((p10 - p0).getNorm() / constants::c) / 1_s) == - Approx(0)); - CHECK(path.average_refractive_index_ == Approx(1)); - CHECK(path.refractive_index_source_ == Approx(1)); - CHECK(path.refractive_index_destination_ == Approx(1)); - CHECK(path.emit_.getComponents() == v1.getComponents()); - CHECK(path.receive_.getComponents() == v2.getComponents()); - CHECK(path.R_distance_ == 10_m); - CHECK(std::equal(P1.begin(), P1.end(), path.begin(), - [](Point const& a, Point const& b) { return (a - b).getNorm() / 1_m < 1e-5; })); - } + // perform checks to paths_ components + for (auto const& path : paths_) { + CHECK((path.propagation_time_ / 1_s) - + (((p10 - p0).getNorm() / constants::c) / 1_s) == + Approx(0)); + CHECK(path.average_refractive_index_ == Approx(1)); + CHECK(path.refractive_index_source_ == Approx(1)); + CHECK(path.refractive_index_destination_ == Approx(1)); + CHECK(path.emit_.getComponents() == v1.getComponents()); + CHECK(path.receive_.getComponents() == v2.getComponents()); + CHECK(path.R_distance_ == 10_m); + CHECK(std::equal( + P1.begin(), P1.end(), path.begin(), + [](Point const& a, Point const& b) { return (a - b).getNorm() / 1_m < 1e-5; })); + } } // END: SECTION("Simple Propagator w/ Uniform Refractive Index") @@ -637,8 +638,9 @@ TEST_CASE("Propagators") { CHECK(path.emit_.getComponents() == v1.getComponents()); CHECK(path.receive_.getComponents() == v2.getComponents()); CHECK(path.R_distance_ == 10_m); - CHECK(std::equal(P1.begin(), P1.end(), path.begin(), - [](Point const& a, Point const& b) { return (a - b).getNorm() / 1_m < 1e-5; })); + CHECK(std::equal( + P1.begin(), P1.end(), path.begin(), + [](Point const& a, Point const& b) { return (a - b).getNorm() / 1_m < 1e-5; })); } // get another path to different points @@ -734,8 +736,9 @@ TEST_CASE("Propagators") { CHECK(path.emit_.getComponents() == vv1.getComponents()); CHECK(path.receive_.getComponents() == vv2.getComponents()); CHECK(path.R_distance_ == 10_m); - CHECK(std::equal(PP1.begin(), PP1.end(), path.begin(), - [](Point const& a, Point const& b) { return (a - b).getNorm() / 1_m < 1e-5; })); + CHECK(std::equal( + PP1.begin(), PP1.end(), path.begin(), + [](Point const& a, Point const& b) { return (a - b).getNorm() / 1_m < 1e-5; })); } CHECK(paths1_.size() == 1);