hdl.rec: make Record inherit from UserValue.
[nmigen.git] / nmigen / test / test_hdl_xfrm.py
index e5f1745f1cd0a0e0117bedc1bb07f5eee716be53..121c87f10cb4b174d6d97094fe06f5ce2632e2c6 100644 (file)
@@ -620,3 +620,12 @@ class UserValueTestCase(FHDLTestCase):
             )
         )
         """)
+
+
+class UserValueRecursiveTestCase(UserValueTestCase):
+    def setUp(self):
+        self.s = Signal()
+        self.c = Signal()
+        self.uv = MockUserValue(MockUserValue(self.s))
+
+    # inherit the test_lower method from UserValueTestCase because the checks are the same