Skip to content

Commit

Permalink
Fixed test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jun 23, 2021
1 parent 173d53c commit c8df413
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/Instantiate.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def test_Entity(self):
self.assertTrue(len(entity.BodyItems) == 0)

def test_Architecture(self):
architecture = Architecture("arch_1")
entity = Entity("entity_1")
architecture = Architecture("arch_1", entity)

self.assertIsNotNone(architecture)
self.assertTrue(architecture.Name == "arch_1")
Expand Down Expand Up @@ -142,7 +143,7 @@ def test_Real(self):
self.assertTrue(real.Name == "real")

def test_Array(self):
array = ArrayType("bit_vector")
array = ArrayType("bit_vector", [], None)

self.assertIsNotNone(array)
self.assertTrue(array.Name == "bit_vector")
Expand Down

0 comments on commit c8df413

Please sign in to comment.