summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
authorJohnathan Corgan2012-06-08 14:48:46 -0700
committerJohnathan Corgan2012-06-08 14:48:46 -0700
commit9752fabd851d05c77b0526e7a28c9c7099e54fc6 (patch)
tree3e14923d95e6a1cb080d8ca6e44e8bf7f9964673 /gr-blocks/python
parent630cd06cb33d628fa6426866f006580aad30f84b (diff)
downloadgnuradio-9752fabd851d05c77b0526e7a28c9c7099e54fc6.tar.gz
gnuradio-9752fabd851d05c77b0526e7a28c9c7099e54fc6.tar.bz2
gnuradio-9752fabd851d05c77b0526e7a28c9c7099e54fc6.zip
blocks: added blocks_add_const_xx
Diffstat (limited to 'gr-blocks/python')
-rwxr-xr-xgr-blocks/python/qa_add_and_friends.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gr-blocks/python/qa_add_and_friends.py b/gr-blocks/python/qa_add_and_friends.py
index 7d008202b..f38c135f2 100755
--- a/gr-blocks/python/qa_add_and_friends.py
+++ b/gr-blocks/python/qa_add_and_friends.py
@@ -99,19 +99,18 @@ class test_add_and_friends(gr_unittest.TestCase):
op = blocks_swig.add_cc()
self.help_cc((src1_data, src2_data), expected_result, op)
- """
def test_add_const_ii(self):
src_data = (1, 2, 3, 4, 5)
expected_result = (6, 7, 8, 9, 10)
- op = gr.add_const_ii(5)
+ op = blocks_swig.add_const_ii(5)
self.help_ii((src_data,), expected_result, op)
def test_add_const_cc(self):
src_data = (1, 2, 3, 4, 5)
expected_result = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
- op = gr.add_const_cc(5j)
+ op = blocks_swig.add_const_cc(5j)
self.help_cc((src_data,), expected_result, op)
-
+ """
def test_mult_const_ii(self):
src_data = (-1, 0, 1, 2, 3)
expected_result = (-5, 0, 5, 10, 15)