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 May 21, 2024
1 parent 08fa457 commit a245858
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
// limitations under the License.

#include "image_projection_based_fusion/utils/geometry.hpp"

#include <gtest/gtest.h>

using namespace image_projection_based_fusion;

TEST(GeometryTest, CalcIoU) {
TEST(GeometryTest, CalcIoU)
{
sensor_msgs::msg::RegionOfInterest roi1, roi2;

// Overlapping ROIs
roi1.x_offset = 0;
roi1.y_offset = 0;
roi1.width = 4;
roi1.height = 4;

roi2.x_offset = 2;
roi2.y_offset = 2;
roi2.width = 4;
Expand All @@ -49,7 +51,8 @@ TEST(GeometryTest, CalcIoU) {
EXPECT_EQ(iou, 0.0);
}

TEST(GeometryTest, CalcIoUX) {
TEST(GeometryTest, CalcIoUX)
{
sensor_msgs::msg::RegionOfInterest roi1, roi2;

// Overlapping ROIs on x-axis
Expand Down Expand Up @@ -79,7 +82,8 @@ TEST(GeometryTest, CalcIoUX) {
EXPECT_EQ(ioux, 0.0);
}

TEST(GeometryTest, CalcIoUY) {
TEST(GeometryTest, CalcIoUY)
{
sensor_msgs::msg::RegionOfInterest roi1, roi2;

// Overlapping ROIs on y-axis
Expand Down

0 comments on commit a245858

Please sign in to comment.