lib.memory: improve and finish documentation.

This commit is contained in:
Catherine 2024-03-22 08:27:10 +00:00
parent 8faa6facfb
commit 8d44ec513d
6 changed files with 416 additions and 150 deletions

View file

@ -353,10 +353,10 @@ class MemoryTestCase(FHDLTestCase):
r"^Changing length of Memory.init is not allowed$"):
m.init[1:] = [1, 2]
with self.assertRaisesRegex(TypeError,
r"^Deleting items from Memory.init is not allowed$"):
r"^Deleting elements from Memory.init is not allowed$"):
del m.init[1:2]
with self.assertRaisesRegex(TypeError,
r"^Inserting items into Memory.init is not allowed$"):
r"^Inserting elements into Memory.init is not allowed$"):
m.init.insert(1, 3)
def test_port(self):