Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 7, 2024
1 parent 646e1eb commit 4af048f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions localization/localization_error_monitor/test/test_diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,27 @@ TEST(TestLocalizationErrorMonitorDiagnostics, CheckLocalizationAccuracyLateralDi

double ellipse_size = 0.0;
stat = check_localization_accuracy_lateral_direction(
ellipse_size, warn_ellipse_size, error_ellipse_size
);
ellipse_size, warn_ellipse_size, error_ellipse_size);
EXPECT_EQ(stat.level, diagnostic_msgs::msg::DiagnosticStatus::OK);

ellipse_size = 0.24;
stat = check_localization_accuracy_lateral_direction(
ellipse_size, warn_ellipse_size, error_ellipse_size
);
ellipse_size, warn_ellipse_size, error_ellipse_size);
EXPECT_EQ(stat.level, diagnostic_msgs::msg::DiagnosticStatus::OK);

ellipse_size = 0.25;
stat = check_localization_accuracy_lateral_direction(
ellipse_size, warn_ellipse_size, error_ellipse_size
);
ellipse_size, warn_ellipse_size, error_ellipse_size);
EXPECT_EQ(stat.level, diagnostic_msgs::msg::DiagnosticStatus::WARN);

ellipse_size = 0.29;
stat = check_localization_accuracy_lateral_direction(
ellipse_size, warn_ellipse_size, error_ellipse_size
);
ellipse_size, warn_ellipse_size, error_ellipse_size);
EXPECT_EQ(stat.level, diagnostic_msgs::msg::DiagnosticStatus::WARN);

ellipse_size = 0.3;
stat = check_localization_accuracy_lateral_direction(
ellipse_size, warn_ellipse_size, error_ellipse_size
);
ellipse_size, warn_ellipse_size, error_ellipse_size);
EXPECT_EQ(stat.level, diagnostic_msgs::msg::DiagnosticStatus::ERROR);
}

Expand Down

0 comments on commit 4af048f

Please sign in to comment.