diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-21 14:34:42 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-22 12:26:59 +0200 |
commit | f0796bfab0032e6e7f9c8f52b789bab06ab7e4df (patch) | |
tree | 61fa06ffafc2c6ad3e3865c324517c1b29ea59c6 /testsuite/pyunit/dom/Expressions.py | |
parent | 5303bb777dedfa03bbc3d042bb14c5d9bbae6b52 (diff) | |
download | ghdl-f0796bfab0032e6e7f9c8f52b789bab06ab7e4df.tar.gz ghdl-f0796bfab0032e6e7f9c8f52b789bab06ab7e4df.tar.bz2 ghdl-f0796bfab0032e6e7f9c8f52b789bab06ab7e4df.zip |
Start handling function calls.
Diffstat (limited to 'testsuite/pyunit/dom/Expressions.py')
-rw-r--r-- | testsuite/pyunit/dom/Expressions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/pyunit/dom/Expressions.py b/testsuite/pyunit/dom/Expressions.py index 3a4f658af..13888eb49 100644 --- a/testsuite/pyunit/dom/Expressions.py +++ b/testsuite/pyunit/dom/Expressions.py @@ -6,7 +6,7 @@ from pyGHDL.dom.DesignUnit import Package from pyGHDL.dom import Expression from pyGHDL.dom.Misc import Design, Document -from pyGHDL.dom.Symbol import SimpleObjectSymbol +from pyGHDL.dom.Symbol import SimpleObjectOrFunctionCallSymbol from pyGHDL.dom.Object import Constant from pyGHDL.dom.Expression import InverseExpression @@ -39,7 +39,7 @@ class Expressions(TestCase): item: Constant = package.DeclaredItems[0] default: Expression = item.DefaultExpression self.assertTrue(isinstance(default, InverseExpression)) - self.assertTrue(isinstance(default.Operand, SimpleObjectSymbol)) + self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol)) self.assertTrue(default.Operand.SymbolName == "true") # def test_Aggregare(self): @@ -66,5 +66,5 @@ class Expressions(TestCase): # item: Constant = package.DeclaredItems[0] # default: Expression = item.DefaultExpression # self.assertTrue(isinstance(default, InverseExpression)) - # self.assertTrue(isinstance(default.Operand, SimpleObjectSymbol)) + # self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol)) # self.assertTrue(default.Operand.SymbolName == "true") |