parent
0fb2b4cd39
commit
de7c9acb19
2 changed files with 8 additions and 3 deletions
|
|
@ -740,6 +740,11 @@ class CatTestCase(FHDLTestCase):
|
|||
def test_cast(self):
|
||||
c = Cat(1, 0)
|
||||
self.assertEqual(repr(c), "(cat (const 1'd1) (const 1'd0))")
|
||||
|
||||
def test_str_wrong(self):
|
||||
with self.assertRaisesRegex(TypeError,
|
||||
r"^Object 'foo' cannot be converted to an Amaranth value$"):
|
||||
Cat("foo")
|
||||
|
||||
|
||||
class ReplTestCase(FHDLTestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue