Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom0Brien committed Apr 10, 2024
1 parent ceb92f6 commit 355e96d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/individual/TimeTravel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ TEST_CASE("Test time travel correctly changes the time for non zero rtf", "[time

std::array<TestUnits, 2> expected_nuclear = {TestUnits(expected[0]), TestUnits(expected[1])};
// NOLINTNEXTLINE(bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions)
std::array<TestUnits, 2> expected_steady = {TestUnits(int64_t(expected[0] / rtf)),
TestUnits(int64_t(expected[1] / rtf))};
std::array<TestUnits, 2> expected_steady = {TestUnits(std::lround(double(expected[0]) / rtf)),
TestUnits(std::lround(double(expected[1]) / rtf))};

const auto& r = reactor.results;
const auto& n_start = reactor.results.start.nuclear;
Expand Down
4 changes: 2 additions & 2 deletions tests/individual/TimeTravelFrozen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ TEST_CASE("Test time travel correctly changes the time for non zero rtf", "[time
auto& reactor = plant->install<TestReactor>();

// Set the reactor fields to the values we want to test
Action action = GENERATE(Action::RELATIVE, Action::ABSOLUTE, Action::NEAREST);
int64_t adjustment = GENERATE(-4, -2, 0, 2, 4, 6, 8, 10);
const Action action = GENERATE(Action::RELATIVE, Action::ABSOLUTE, Action::NEAREST);
const int64_t adjustment = GENERATE(-4, -2, 0, 2, 4, 6, 8, 10);
CAPTURE(action, adjustment);
reactor.action = action;
reactor.adjustment = std::chrono::milliseconds(adjustment);
Expand Down

0 comments on commit 355e96d

Please sign in to comment.