hdl.rec: migrate Record from UserValue to ValueCastable.

Closes #528.
This commit is contained in:
awygle 2020-11-05 17:10:39 -08:00 committed by GitHub
parent 06c734992f
commit abbebf8efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 10 deletions

View file

@ -135,8 +135,8 @@ class RecordTestCase(FHDLTestCase):
("stb", 1),
])
self.assertEqual(repr(r[0]), "(slice (rec r data stb) 0:1)")
self.assertEqual(repr(r[0:3]), "(slice (rec r data stb) 0:3)")
self.assertEqual(repr(r[0]), "(slice (cat (sig r__data) (sig r__stb)) 0:1)")
self.assertEqual(repr(r[0:3]), "(slice (cat (sig r__data) (sig r__stb)) 0:3)")
def test_wrong_field(self):
r = Record([