summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Economos <w6rz@comcast.net>2020-11-13 03:59:07 -0800
committermormj <34754695+mormj@users.noreply.github.com>2020-11-14 17:22:21 -0500
commita096f48063dddcc080384f585e0bdc075d72da9d (patch)
tree97ba75f0e6dfa4e9b5f90108c0a9491748fcff2a
parent55621a9709b219551b908e67ee88f6f7ad2593cb (diff)
gnuradio-runtime: Fix qa_fast_atan2f test code.
-rw-r--r--gnuradio-runtime/lib/math/qa_fast_atan2f.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
index 7b9885e42e..01efe30c65 100644
--- a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
+++ b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
@@ -25,19 +25,19 @@
BOOST_AUTO_TEST_CASE(t1)
{
- static const unsigned int N = 100;
+ static const int N = 100;
float c_atan2;
float gr_atan2f;
for (float i = -N / 2; i < N / 2; i++) {
- for (float j = -N / 2; i < N / 2; i++) {
+ for (float j = -N / 2; j < N / 2; j++) {
float x = i / 10.0;
float y = j / 10.0;
c_atan2 = atan2(y, x);
gr_atan2f = gr::fast_atan2f(y, x);
- BOOST_CHECK_CLOSE(c_atan2, gr_atan2f, 0.0);
+ BOOST_CHECK_CLOSE(c_atan2, gr_atan2f, 0.001);
}
}
}