From 4bf87efe74011c26515103d97cf720acb3088717 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Wed, 21 Aug 2024 21:03:15 +0000 Subject: [PATCH] update unit test --- .../MUSTSensorDriverPlugin/test/TestMUSTSensorDetection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v2i-hub/MUSTSensorDriverPlugin/test/TestMUSTSensorDetection.cpp b/src/v2i-hub/MUSTSensorDriverPlugin/test/TestMUSTSensorDetection.cpp index 375c97c24..99595cc02 100644 --- a/src/v2i-hub/MUSTSensorDriverPlugin/test/TestMUSTSensorDetection.cpp +++ b/src/v2i-hub/MUSTSensorDriverPlugin/test/TestMUSTSensorDetection.cpp @@ -18,9 +18,9 @@ TEST(TestMUSTSensorDetection, fromStringToDetectionClassification) EXPECT_EQ(DetectionClassification::SEDAN, fromStringToDetectionClassification("sedan")); EXPECT_EQ(DetectionClassification::VAN, fromStringToDetectionClassification("van")); EXPECT_EQ(DetectionClassification::TRUCK, fromStringToDetectionClassification("truck")); - EXPECT_EQ(DetectionClassification::TRUCK, fromStringToDetectionClassification("bus")); - EXPECT_EQ(DetectionClassification::TRUCK, fromStringToDetectionClassification("pickup truck")); - EXPECT_EQ(DetectionClassification::TRUCK, fromStringToDetectionClassification("pedestrain")); + EXPECT_EQ(DetectionClassification::BUS, fromStringToDetectionClassification("bus")); + EXPECT_EQ(DetectionClassification::PICKUP_TRUCK, fromStringToDetectionClassification("pickup truck")); + EXPECT_EQ(DetectionClassification::PEDESTRIAN, fromStringToDetectionClassification("pedestrian")); EXPECT_EQ(DetectionClassification::NA, fromStringToDetectionClassification("not_a_classification")); }