summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2016-09-15 21:21:17 -0600
committerMarcus Müller <marcus@hostalia.de>2016-09-15 21:21:17 -0600
commit54ede29960f9022a8040e10c0d58fa8fed989a3f (patch)
tree9fd1044a559244fc3a21d99b257b14d64b3f9d3a /gr-blocks/python
parent22f637f30e54f6a46c8c40c8923ef3d8c66104e9 (diff)
fixed QA, conditionalized adding loop
Diffstat (limited to 'gr-blocks/python')
-rwxr-xr-xgr-blocks/python/blocks/qa_nlog10.py6
1 files changed, 3 insertions, 3 deletions
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__':