Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / lib / filter / qa_gr_fir_fff.cc
index abb2caeac5ffea87a920fc3a5b32a229f54640fa..b921223ed96df2a6fc5b74822bf48ae95bfaed0b 100644 (file)
@@ -32,6 +32,7 @@
 #include <cmath>
 #include <cppunit/TestAssert.h>
 #include <random.h>
+#include <string.h>
 
 using std::vector;
 
@@ -142,7 +143,7 @@ ref_dotprod (const i_type input[], const tap_type taps[], int ntaps)
 static void
 test_random_io (fir_maker_t maker)  
 {
-  const int    MAX_TAPS        = 9;
+  const int    MAX_TAPS        = 32;
   const int    OUTPUT_LEN      = 17;
   const int    INPUT_LEN       = MAX_TAPS + OUTPUT_LEN;
 
@@ -186,7 +187,7 @@ test_random_io (fir_maker_t maker)
       
       for (int o = 0; o < ol; o++){
        CPPUNIT_ASSERT_DOUBLES_EQUAL (expected_output[o], actual_output[o],
-                           fabs (expected_output[o]) * 1e-4);
+                                     fabs (expected_output[o]) * 9e-3);
       }
 
       delete f1;