Skip to content

Commit

Permalink
Merge branch 'more-reporting' of https://github.com/eggrobin/Principia
Browse files Browse the repository at this point in the history
…into more-reporting
  • Loading branch information
eggrobin committed May 28, 2023
2 parents 75848ae + 4f53b48 commit 2525fe1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ksp_plugin_test/vessel_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ TEST_F(VesselTest, FlightPlan) {
vessel_.CreateTrajectoryIfNeeded(t0_);

EXPECT_FALSE(vessel_.has_flight_plan());
vessel_.CreateFlightPlan(t0_ + 4.0 * Second,
vessel_.CreateFlightPlan(t0_ + 3.0 * Second,
10 * Kilogram,
DefaultPredictionParameters(),
DefaultBurnParameters());
Expand All @@ -405,7 +405,7 @@ TEST_F(VesselTest, FlightPlan) {
p1 = &vessel_.flight_plan();
EXPECT_EQ(1, vessel_.flight_plan_count());
EXPECT_EQ(0, vessel_.selected_flight_plan_index());
vessel_.CreateFlightPlan(t0_ + 4.0 * Second,
vessel_.CreateFlightPlan(t0_ + 3.0 * Second,
10 * Kilogram,
DefaultPredictionParameters(),
DefaultBurnParameters());
Expand Down
2 changes: 1 addition & 1 deletion numerics/root_finders_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TEST_F(RootFindersTest, SquareRoots) {
Instant const t_0;
Instant const t_max = t_0 + 10 * Second;
Length const n_max = Pow<2>(t_max - t_0) * si::Unit<Acceleration>;
for (Length n = -1 * Metre; n < n_max; n += 1 * Metre) {
for (Length n = 1 * Metre; n < n_max; n += 1 * Metre) {
int evaluations = 0;
auto const equation = [t_0, n, &evaluations](Instant const& t) {
++evaluations;
Expand Down
2 changes: 1 addition & 1 deletion quantities/parser_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ inline int ParseExponent(std::string const& s) {
char const* const c_string = s.c_str();
int const exponent = std::strtol(c_string, &interpreted_end, /*base=*/10);
int const interpreted = interpreted_end - c_string;
CHECK_LT(0, interpreted) << "Invalid integer number " << s;
CHECK_LT(0, interpreted) << "invalid integer number " << s;
return exponent;
}

Expand Down

0 comments on commit 2525fe1

Please sign in to comment.