diff options
Diffstat (limited to 'gr-digital/python/digital/qa_map.py')
-rw-r--r-- | gr-digital/python/digital/qa_map.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gr-digital/python/digital/qa_map.py b/gr-digital/python/digital/qa_map.py index 59d0ed1ee5..384636e595 100644 --- a/gr-digital/python/digital/qa_map.py +++ b/gr-digital/python/digital/qa_map.py @@ -1,16 +1,17 @@ #!/usr/bin/env python # # Copyright 2012,2013 Free Software Foundation, Inc. -# +# # This file is part of GNU Radio -# +# # SPDX-License-Identifier: GPL-3.0-or-later # -# +# from gnuradio import gr, gr_unittest, digital, blocks + class test_map(gr_unittest.TestCase): def setUp(self): @@ -34,15 +35,15 @@ class test_map(gr_unittest.TestCase): def test_001(self): symbols = [0, 0, 0, 0] self.helper(symbols) - + def test_002(self): symbols = [3, 2, 1, 0] self.helper(symbols) def test_003(self): - symbols = [8-1, 32-1, 128, 256-1] + symbols = [8 - 1, 32 - 1, 128, 256 - 1] self.helper(symbols) + if __name__ == '__main__': gr_unittest.run(test_map) - |