test/test_ultrasonic_sensor.cpp
/**
 * @brief      Test to check the method of setting maximum distance
 */
@brief      Test to check the method of setting maximum distance
@brief Test to check the method of setting maximum distance
TEST_F(TestUltrasonicSensor, setMaxDistance) {
  sensor.setMaxDistance(10.03);  
  EXPECT_NEAR(sensor.getMaxDistance(), 10.03, 0.0001);
}
TEST_F ( TestUltrasonicSensor , setMaxDistance ) { sensor . setMaxDistance ( 10.03 ) ; EXPECT_NEAR ( sensor . getMaxDistance ( ) , 10.03 , 0.0001 ) ; }
@brief      Test to check the method of setting maximum distance
@brief Test to check the method of setting maximum distance
// Set the max distance using the method // Test to check if setter and getter methods work correctly