hdl.rec: separate record and signal name with __, not _.
This makes names of signals within records less ambiguous, in case they themselves have underscores within them.
This commit is contained in:
parent
81ee2db163
commit
3c95299c4e
2 changed files with 4 additions and 4 deletions
|
|
@ -65,11 +65,11 @@ class RecordTestCase(FHDLTestCase):
|
|||
])
|
||||
])
|
||||
|
||||
self.assertEqual(repr(r), "(rec r stb data (rec r_info a b))")
|
||||
self.assertEqual(repr(r), "(rec r stb data (rec r__info a b))")
|
||||
self.assertEqual(len(r), 35)
|
||||
self.assertIsInstance(r.stb, Signal)
|
||||
self.assertEqual(r.stb.name, "r_stb")
|
||||
self.assertEqual(r["stb"].name, "r_stb")
|
||||
self.assertEqual(r.stb.name, "r__stb")
|
||||
self.assertEqual(r["stb"].name, "r__stb")
|
||||
|
||||
def test_unnamed(self):
|
||||
r = [Record([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue