add comments
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jan 2020 13:57:46 +0000 (13:57 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 30 Jan 2020 13:57:46 +0000 (13:57 +0000)
src/ieee754/part/test/test_partsig.py

index 5e003c6898d5934ad1023a23309dc1ab818ec51b..aaf0dcbe1faa0f5f4d64a105e4055a06f71a87e2 100644 (file)
@@ -99,9 +99,11 @@ class TestPartitionPoints(unittest.TestCase):
                                 v |= 0xf << (i*4)
                         mask_list.append(v)
                     y = 0
+                    # do the partitioned tests
                     for i, mask in enumerate(mask_list):
                         if (a & mask) == (b & mask):
                             y |= maskbit_list[i]
+                    # check the result
                     outval = (yield module.eq_output)
                     msg = f"{msg_prefix}: 0x{a:X} + 0x{b:X}" + \
                         f" => 0x{y:X} != 0x{outval:X}, masklist %s"