From 54ede29960f9022a8040e10c0d58fa8fed989a3f Mon Sep 17 00:00:00 2001 From: Marcus Müller <marcus@hostalia.de> Date: Thu, 15 Sep 2016 21:21:17 -0600 Subject: fixed QA, conditionalized adding loop --- gr-blocks/python/blocks/qa_nlog10.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gr-blocks/python') diff --git a/gr-blocks/python/blocks/qa_nlog10.py b/gr-blocks/python/blocks/qa_nlog10.py index 0194e85d48..c925479f59 100755 --- a/gr-blocks/python/blocks/qa_nlog10.py +++ b/gr-blocks/python/blocks/qa_nlog10.py @@ -31,15 +31,15 @@ class test_nlog10(gr_unittest.TestCase): self.tb = None def test_001(self): - src_data = (-10, 0, 10, 100, 1000, 10000, 100000) - expected_result = (-180, -180, 10, 20, 30, 40, 50) + src_data = (1, 10, 100, 1000, 10000, 100000) + expected_result = (0, 10, 20, 30, 40, 50) src = blocks.vector_source_f(src_data) op = blocks.nlog10_ff(10) dst = blocks.vector_sink_f() self.tb.connect (src, op, dst) self.tb.run() result_data = dst.data() - self.assertFloatTuplesAlmostEqual (expected_result, result_data) + self.assertFloatTuplesAlmostEqual (expected_result, result_data, 5) if __name__ == '__main__': -- cgit v1.2.3