From e559e5574aeb7032243eb56f5ab7fc0e76c7f38f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 30 Sep 2021 14:40:15 +0100 Subject: [PATCH] whitespace / comments --- src/ieee754/part/test/test_partsig.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ieee754/part/test/test_partsig.py b/src/ieee754/part/test/test_partsig.py index 39bd5f5f..fcfa38a8 100644 --- a/src/ieee754/part/test/test_partsig.py +++ b/src/ieee754/part/test/test_partsig.py @@ -14,6 +14,7 @@ import unittest import itertools import math + def first_zero(x): res = 0 for i in range(16): @@ -554,6 +555,11 @@ class TestPartitionedSignal(unittest.TestCase): f" => 0x{carry_result:X} != 0x{c_outval:X}" self.assertEqual(carry_result, c_outval, msg) + # run through series of operations with corresponding + # "helper" routines to reproduce the result (test_fn). the same + # a/b input is passed to *all* outputs, where the name of the + # output attribute (mod_attr) will contain the result to be + # compared against the expected output from test_fn for (test_fn, mod_attr) in ( (test_ls_scal_fn, "ls_scal"), (test_ls_fn, "ls"), -- 2.30.2