test/test_ultrasonic_sensor.cpp
/**
 * @brief      Test to check the reading of ultrasonic sensor
 */
@brief      Test to check the reading of ultrasonic sensor
@brief Test to check the reading of ultrasonic sensor
TEST_F(TestUltrasonicSensor, sensorReading) {
  sensor.setSeed(0);  
  sensor.process();   
  EXPECT_NEAR(sensor.getOutput(), 5.000471475, 0.00001);
}
TEST_F ( TestUltrasonicSensor , sensorReading ) { sensor . setSeed ( 0 ) ; sensor . process ( ) ; EXPECT_NEAR ( sensor . getOutput ( ) , 5.000471475 , 0.00001 ) ; }
@brief      Test to check the reading of ultrasonic sensor
@brief Test to check the reading of ultrasonic sensor
// Set the seed to a constant value // Take the reading of the sensor // Test the closeness of the two readings