19 static const std::size_t ARRAY_SIZE = 10000;
20 std::vector< float > dummyArray;
21 dummyArray.reserve( ARRAY_SIZE );
22 static const float ARRAY_ELEMENT = 3.141592f;
23 for( std::size_t
i = 0;
i < ARRAY_SIZE; ++
i ) {
24 dummyArray.push_back( ARRAY_ELEMENT );
29 static const float MULTIPLIER = 1.23f;
33 static const float EXPECTED_RESULT = ARRAY_ELEMENT * MULTIPLIER;
34 for( std::size_t
i = 0;
i < ARRAY_SIZE; ++
i ) {
35 if( std::abs( dummyArray[
i ] - EXPECTED_RESULT ) > 0.001 ) {
37 return StatusCode::FAILURE;
42 return StatusCode::SUCCESS;