commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 07/13: runtime: math: reset a QA test for t


From: git
Subject: [Commit-gnuradio] [gnuradio] 07/13: runtime: math: reset a QA test for the fast_atan2f for mixed nan/inf input.
Date: Thu, 4 Dec 2014 16:21:50 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 9cfa4ba55ff4431ede3b1abc89a6ef2763b3a5b5
Author: Tom Rondeau <address@hidden>
Date:   Wed Dec 3 18:59:42 2014 -0500

    runtime: math: reset a QA test for the fast_atan2f for mixed nan/inf input.
    
    This is the original check (isnan) before the change in table and so the 
behavior for this input should be the same.
---
 gnuradio-runtime/lib/math/qa_fast_atan2f.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc 
b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
index 644b0c4..154998f 100644
--- a/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
+++ b/gnuradio-runtime/lib/math/qa_fast_atan2f.cc
@@ -128,11 +128,10 @@ qa_fast_atan2f::t2()
   x = inf;
   y = nan;
   gr_atan2f = gr::fast_atan2f(y, x);
-  CPPUNIT_ASSERT_DOUBLES_EQUAL(0.0f, gr_atan2f, 0.0001);
+  CPPUNIT_ASSERT(isnan(gr_atan2f));
 
   x = nan;
   y = inf;
   gr_atan2f = gr::fast_atan2f(y, x);
   CPPUNIT_ASSERT(isnan(gr_atan2f));
 }
-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]