[Libre-soc-dev] daily kan-ban update 25mar2021
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Thu Mar 25 22:08:06 GMT 2021
class TestRadixMMU(unittest.TestCase):
def test_genmask(self):
@@ -705,6
<https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/decoder/isa/radixmmu.py;h=8595bf69abd5f6701e35ec72f8a5d3c9d182d468#l705>
+703,7
<https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/decoder/isa/radixmmu.py;h=9bd6d53f252223930d22a56b1f3f4201e92b6630;hb=1a1b8bca62373496076d9f2597c03c8e24d1b658#l703>
@@ class TestRadixMMU(unittest.TestCase):
shift = rts
result = mem._walk_tree(addr, pgbase, mode, mbits, shift)
print(" walking tree result", result)
+ print("should be",testresult)
here tobias you can add self.assertEqual(result, testresult)
then, use a for-loop to put in multiple potential values, if that is
appropriate.
for result, testresult in [
(nn, mm),
(nn2, mm2),
...
]
l.
--
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
More information about the Libre-soc-dev
mailing list