Skip to content

Commit

Permalink
Fixed testcases too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Apr 16, 2023
1 parent 004fb0e commit c36c2d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/unit/Analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def CreateDesign(self) -> Design:

entityAReferences = [
# UseClause([
# PackageMembersReferenceSymbol("Stop", PackageReferenceSymbol("env", LibraryReferenceSymbol("std"))),
# PackageMemberReferenceSymbol("Stop", PackageReferenceSymbol("env", LibraryReferenceSymbol("std"))),
# ]),
LibraryClause([
LibraryReferenceSymbol(SimpleName("ieee")),
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/Instantiate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from pyVHDLModel.Base import Direction, Range
from pyVHDLModel.Name import SelectedName, SimpleName, AllName, AttributeName
from pyVHDLModel.Object import Constant, Signal
from pyVHDLModel.Symbol import LibraryReferenceSymbol, PackageReferenceSymbol, PackageMembersReferenceSymbol, SimpleSubtypeSymbol
from pyVHDLModel.Symbol import LibraryReferenceSymbol, PackageReferenceSymbol, PackageMemberReferenceSymbol, SimpleSubtypeSymbol
from pyVHDLModel.Symbol import AllPackageMembersReferenceSymbol, ContextReferenceSymbol, EntitySymbol
from pyVHDLModel.Symbol import ArchitectureSymbol, PackageSymbol, EntityInstantiationSymbol
from pyVHDLModel.Symbol import ComponentInstantiationSymbol, ConfigurationInstantiationSymbol
Expand Down Expand Up @@ -171,15 +171,15 @@ def test_PackageReferenceSymbol(self):
self.assertEqual("PackageReferenceSymbol: 'Lib.Pack' -> Package: 'liB.pacK'", repr(symbol))
self.assertEqual("Package: 'liB.pacK'", str(symbol))

def test_PackageMembersReferenceSymbol(self):
def test_PackageMemberReferenceSymbol(self):
name = SelectedName("Obj", SelectedName("Pack", SimpleName("Lib")))
symbol = PackageMembersReferenceSymbol(name)
symbol = PackageMemberReferenceSymbol(name)

self.assertIs(name, symbol.Name)
self.assertFalse(symbol.IsResolved)
self.assertIsNone(symbol.Reference)
self.assertIsNone(symbol.Member)
self.assertEqual("PackageMembersReferenceSymbol: 'Lib.Pack.Obj' -> unresolved", repr(symbol))
self.assertEqual("PackageMemberReferenceSymbol: 'Lib.Pack.Obj' -> unresolved", repr(symbol))
self.assertEqual("Lib.Pack.Obj?", str(symbol))

library = Library("liB")
Expand Down

0 comments on commit c36c2d8

Please sign in to comment.