nmigen.hdl.rec: restore Record.shape().
This method was lost in commit abbebf8e.
This commit is contained in:
parent
44318149e0
commit
c1ed90807b
2 changed files with 7 additions and 0 deletions
|
|
@ -176,6 +176,10 @@ class RecordTestCase(FHDLTestCase):
|
|||
self.assertIs(r.stb, ns)
|
||||
self.assertIs(r.info, nr)
|
||||
|
||||
def test_shape(self):
|
||||
r1 = Record([("a", 1), ("b", 2)])
|
||||
self.assertEqual(r1.shape(), unsigned(3))
|
||||
|
||||
def test_like(self):
|
||||
r1 = Record([("a", 1), ("b", 2)])
|
||||
r2 = Record.like(r1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue