Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jun 24, 2024
1 parent 9563ad9 commit ddb2c96
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@ TEST(TestMUSTSensorDetection, detectionClassificationToString ) {
EXPECT_STRCASEEQ("TRUCK", detectionClassificationToString(DetectionClassification::TRUCK).c_str());
EXPECT_THROW(detectionClassificationToString(DetectionClassification::NA).c_str(), std::runtime_error);

}

TEST(TestMUSTSensorDetection, headingSpeedToVelocity ) {
auto velocity = headingSpeedToVelocity(30, 5);
EXPECT_NEAR(4.33, velocity.Y, 0.001);
EXPECT_NEAR(-2.5, velocity.X, 0.001);
}

0 comments on commit ddb2c96

Please sign in to comment.