From c36c2d86b63c19b0dc8d7234d06a0ce5b33591f4 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 16 Apr 2023 19:58:06 +0200 Subject: [PATCH] Fixed testcases too. --- tests/unit/Analyze.py | 2 +- tests/unit/Instantiate.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/Analyze.py b/tests/unit/Analyze.py index 06d9e55cd..9ade0cdfc 100644 --- a/tests/unit/Analyze.py +++ b/tests/unit/Analyze.py @@ -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")), diff --git a/tests/unit/Instantiate.py b/tests/unit/Instantiate.py index b96cd5c5b..7c59f6377 100644 --- a/tests/unit/Instantiate.py +++ b/tests/unit/Instantiate.py @@ -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 @@ -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")