Skip to content

Commit

Permalink
compare the precise values
Browse files Browse the repository at this point in the history
Signed-off-by: Zhe Shen <[email protected]>
  • Loading branch information
HansOersted committed Dec 12, 2024
1 parent 0bb9c5c commit fd97b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoware_lanelet2_extension/test/src/test_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ TEST_F(TestSuite, GetLaneletLength) // NOLINT for gtest
double length_2d = lanelet::utils::getLaneletLength2d(road_lanelet);
double length_3d = lanelet::utils::getLaneletLength3d(road_lanelet);

EXPECT_GT(length_2d, 0.0);
EXPECT_GT(length_3d, 0.0);
EXPECT_DOUBLE_EQ(length_2d, 1.0);
EXPECT_DOUBLE_EQ(length_3d, 1.0);
}

/*
Expand Down

0 comments on commit fd97b01

Please sign in to comment.