From 0b0f2e10fa76e6adebf669f8a7ef1c7d15d8c5d2 Mon Sep 17 00:00:00 2001 From: eb Date: Tue, 2 Oct 2007 19:30:33 +0000 Subject: [PATCH] renamed test macro for consistency git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6574 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc | 6 +++--- gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc | 4 ++-- gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc | 6 +++--- gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc | 6 +++--- 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 7c0003c1..aee0e461 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 1af7c91f..1d57cd0c 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 5163a0e1..93b84b9c 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 ddbbf9c6..1aea34fb 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 f705d95d..32e996ee 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); -- 2.47.2