Skip to content

Commit

Permalink
par shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Sep 21, 2023
1 parent a953a91 commit f97eb6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/planet_keplerian_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ TEST_CASE("constructor") {
"unknown",
{-1, -1, -1}});
// From parameters kep3::elements_type::KEP_F
std::array<double, 6> par{{1., 0., 0., 0., 0., 0.}};
REQUIRE_NOTHROW(kep3::udpla::keplerian{ref_epoch, par, 1., "unknown"});
std::array<double, 6> par0{{1., 0., 0., 0., 0., 0.}};
REQUIRE_NOTHROW(kep3::udpla::keplerian{ref_epoch, par0, 1., "unknown"});
REQUIRE_NOTHROW(
kep3::udpla::keplerian{ref_epoch, par, 1., "unknown", {-1, -1, -1}});
kep3::udpla::keplerian{ref_epoch, par0, 1., "unknown", {-1, -1, -1}});
// Checking the data members initializations:
kep3::udpla::keplerian udpla{ref_epoch, par, 1.1, "unknown", {1.2, 2.2, 1.9}};
kep3::udpla::keplerian udpla{ref_epoch, par0, 1.1, "unknown", {1.2, 2.2, 1.9}};
REQUIRE(udpla.get_ref_epoch() == ref_epoch);
REQUIRE(udpla.get_name() == "unknown");
REQUIRE(udpla.get_mu_central_body() == 1.1);
Expand Down

0 comments on commit f97eb6e

Please sign in to comment.