test/test_scan_filter_chain.cpp
void expect_ranges_eq(const std::vector<float> &a, const std::vector<float> &b) {
  for( int i=0; i<10; i++) {
    if(std::isnan(a[i])) {
      EXPECT_TRUE(std::isnan(b[i]));
    }
    else {
      EXPECT_NEAR(a[i], b[i], 1e-6);
    }
  }
}
/** Verifies that two vectors of range values are the same. Allows the case
 * where corresponding values are both NaN.
 */
Verifies that two vectors of range values are the same. Allows the case
where corresponding values are both NaN.
Verifies that two vectors of range values are the same . Allows the case where corresponding values are both NaN .
void expect_ranges_eq(const std::vector<float> &a, const std::vector<float> &b) {
  for( int i=0; i<10; i++) {
    if(std::isnan(a[i])) {
      EXPECT_TRUE(std::isnan(b[i]));
    }
    else {
      EXPECT_NEAR(a[i], b[i], 1e-6);
    }
  }
}
void expect_ranges_eq ( const std :: vector < float > & a , const std :: vector < float > & b ) { for ( int i = 0 ; i < 10 ; i ++ ) { if ( std :: isnan ( a [ i ] ) ) { EXPECT_TRUE ( std :: isnan ( b [ i ] ) ) ; } else { EXPECT_NEAR ( a [ i ] , b [ i ] , 1e-6 ) ; } } }
Verifies that two vectors of range values are the same.
Verifies that two vectors of range values are the same .