From: Luke Kenneth Casson Leighton Date: Thu, 30 Sep 2021 13:40:15 +0000 (+0100) Subject: whitespace / comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e559e5574aeb7032243eb56f5ab7fc0e76c7f38f;p=ieee754fpu.git whitespace / comments --- 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"),