diff options
author | Martin Braun <martin@gnuradio.org> | 2021-05-17 15:54:08 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-05-22 14:30:40 -0400 |
commit | 60147b42f29f9746a3f8fb5d41193f39a29054eb (patch) | |
tree | e354e1b2925270500b696a9baab0feb493b03578 /gr-digital/python/digital/qa_crc32.py | |
parent | b029dc427ea633409069198823390abd912b18e7 (diff) |
digital: Remove crc32 utility
This patch removes a crc32 utility that used to be used in our CRC32
blocks, but no longer is. Right now, all this does is expose a generic
CRC32 function to the user (both via Python and C++), but there are
enough other libraries that let the user do that. Therefore, we'll
remove this.
Signed-off-by: Martin Braun <martin@gnuradio.org>
Diffstat (limited to 'gr-digital/python/digital/qa_crc32.py')
-rw-r--r-- | gr-digital/python/digital/qa_crc32.py | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/gr-digital/python/digital/qa_crc32.py b/gr-digital/python/digital/qa_crc32.py deleted file mode 100644 index 8207a34e73..0000000000 --- a/gr-digital/python/digital/qa_crc32.py +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env python -# -# Copyright 2011 Free Software Foundation, Inc. -# -# This file is part of GNU Radio -# -# SPDX-License-Identifier: GPL-3.0-or-later -# -# - - -import cmath - -from gnuradio import gr, gr_unittest, digital - - -class test_crc32(gr_unittest.TestCase): - - def setUp(self): - self.tb = gr.top_block() - - def tearDown(self): - self.tb = None - - def test01(self): - data = 100 * "0" - expected_result = 2943744955 - result = digital.crc32(data) - # print hex(result) - - self.assertEqual(expected_result, result) - - def test02(self): - data = 100 * "1" - expected_result = 2326594156 - result = digital.crc32(data) - # print hex(result) - - self.assertEqual(expected_result, result) - - def test03(self): - data = 10 * "0123456789" - expected_result = 3774345973 - result = digital.crc32(data) - # print hex(result) - - self.assertEqual(expected_result, result) - - -if __name__ == '__main__': - gr_unittest.run(test_crc32) |