diff options
author | eb | 2007-10-02 19:30:33 +0000 |
---|---|---|
committer | eb | 2007-10-02 19:30:33 +0000 |
commit | 0b0f2e10fa76e6adebf669f8a7ef1c7d15d8c5d2 (patch) | |
tree | 093c1f15c06fa7e664d16b20fb39ac7a36f5dbee /gnuradio-core/src/lib | |
parent | 554380de440aed0dd2c20c1c394e15c770802b2d (diff) | |
download | gnuradio-0b0f2e10fa76e6adebf669f8a7ef1c7d15d8c5d2.tar.gz gnuradio-0b0f2e10fa76e6adebf669f8a7ef1c7d15d8c5d2.tar.bz2 gnuradio-0b0f2e10fa76e6adebf669f8a7ef1c7d15d8c5d2.zip |
renamed test macro for consistency
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6574 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r-- | gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc | 6 | ||||
-rw-r--r-- | gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc | 4 | ||||
-rw-r--r-- | gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc | 6 | ||||
-rw-r--r-- | gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc | 6 | ||||
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_complex.h | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc index 7c0003c1f..aee0e4614 100644 --- a/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc +++ b/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc @@ -148,9 +148,9 @@ test_random_io (fir_maker_t maker) // arithmetic. for (int o = 0; o < ol; o++){ - ASSERT_COMPLEXES_EQUAL (expected_output[o], - actual_output[o], - abs (expected_output[o]) * ERR_DELTA); + CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], + actual_output[o], + abs (expected_output[o]) * ERR_DELTA); } delete f1; diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc index 1af7c91fc..1d57cd0cd 100644 --- a/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc +++ b/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc @@ -147,8 +147,8 @@ test_random_io (fir_maker_t maker) // arithmetic. for (int o = 0; o < ol; o++){ - ASSERT_COMPLEXES_EQUAL (expected_output[o], actual_output[o], - abs (expected_output[o]) * ERR_DELTA); + CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], actual_output[o], + abs (expected_output[o]) * ERR_DELTA); } delete f1; diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc index 5163a0e14..93b84b9c3 100644 --- a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc +++ b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc @@ -146,9 +146,9 @@ test_random_io (fir_maker_t maker) // arithmetic. for (int o = 0; o < ol; o++){ - ASSERT_COMPLEXES_EQUAL (expected_output[o], - actual_output[o], - abs (expected_output[o]) * ERR_DELTA); + CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], + actual_output[o], + abs (expected_output[o]) * ERR_DELTA); } delete f1; diff --git a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc index ddbbf9c6e..1aea34fbb 100644 --- a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc +++ b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc @@ -145,9 +145,9 @@ test_random_io (fir_maker_t maker) // arithmetic. for (int o = 0; o < ol; o++){ - ASSERT_COMPLEXES_EQUAL (expected_output[o], - actual_output[o], - abs (expected_output[o]) * ERR_DELTA); + CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected_output[o], + actual_output[o], + abs (expected_output[o]) * ERR_DELTA); } delete f1; diff --git a/gnuradio-core/src/lib/runtime/gr_complex.h b/gnuradio-core/src/lib/runtime/gr_complex.h index f705d95dc..32e996eef 100644 --- a/gnuradio-core/src/lib/runtime/gr_complex.h +++ b/gnuradio-core/src/lib/runtime/gr_complex.h @@ -38,7 +38,7 @@ inline bool is_complex (short x) { return false;} // this doesn't really belong here, but there are worse places for it... -#define ASSERT_COMPLEXES_EQUAL(expected,actual,delta) \ +#define CPPUNIT_ASSERT_COMPLEXES_EQUAL(expected,actual,delta) \ CPPUNIT_ASSERT_DOUBLES_EQUAL (expected.real(), actual.real(), delta); \ CPPUNIT_ASSERT_DOUBLES_EQUAL (expected.imag(), actual.imag(), delta); |