summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/Makefile.am4
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_repeat.py7
2 files changed, 7 insertions, 4 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/Makefile.am b/gnuradio-core/src/python/gnuradio/gr/Makefile.am
index 3d98bcd40..db8e2b382 100644
--- a/gnuradio-core/src/python/gnuradio/gr/Makefile.am
+++ b/gnuradio-core/src/python/gnuradio/gr/Makefile.am
@@ -91,7 +91,7 @@ noinst_PYTHON = \
qa_single_pole_iir.py \
qa_single_pole_iir_cc.py \
qa_skiphead.py \
- qa_unpack_k_bits.py
-
+ qa_unpack_k_bits.py \
+ qa_repeat.py
CLEANFILES = *.pyc
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py b/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
index 88dbae06e..1ecc7ead3 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
@@ -32,8 +32,11 @@ class test_repeat (gr_unittest.TestCase):
self.tb = None
def test_001_float(self):
- src_data = [1.0, 2.0, 3.0]
- dst_data = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0]
+ src_data = [n*1.0 for n in range(100)];
+ dst_data = []
+ for n in range(100):
+ dst_data += [1.0*n, 1.0*n, 1.0*n]
+
src = gr.vector_source_f(src_data)
rpt = gr.repeat(gr.sizeof_float, 3)
dst = gr.vector_sink_f()