1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00

improving test

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@499 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2014-03-28 22:30:20 +00:00
parent f209dd9163
commit 9f2f4335a0

View File

@ -168,15 +168,15 @@ TEST(Multiply_Test, VolkComplexImplementation)
<< "-length complex float vector using VOLK finished in " << (end - begin) << "-length complex float vector using VOLK finished in " << (end - begin)
<< " microseconds" << std::endl; << " microseconds" << std::endl;
ASSERT_LE(0, end - begin); ASSERT_LE(0, end - begin);
/*
float* mag = new float [FLAGS_size_multiply_test]; float* mag = new float [FLAGS_size_multiply_test];
volk_32fc_magnitude_32f(mag, output, FLAGS_size_multiply_test); volk_32fc_magnitude_32f(mag, output, FLAGS_size_multiply_test);
float* result = 0; float* result = new float(0);
volk_32f_accumulator_s32f(result, mag, FLAGS_size_multiply_test); volk_32f_accumulator_s32f(result, mag, FLAGS_size_multiply_test);
// Comparing floating-point numbers is tricky. // Comparing floating-point numbers is tricky.
// Due to round-off errors, it is very unlikely that two floating-points will match exactly. // Due to round-off errors, it is very unlikely that two floating-points will match exactly.
// See http://code.google.com/p/googletest/wiki/AdvancedGuide#Floating-Point_Comparison // See http://code.google.com/p/googletest/wiki/AdvancedGuide#Floating-Point_Comparison
float expected = 0; float expected = 0;
ASSERT_FLOAT_EQ(expected, result[0]); */ ASSERT_FLOAT_EQ(expected, result[0]);
} }