From a211cdcf7d5eb5f058d2e38c93092f4548283451 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 16 Apr 2023 11:17:29 +0200 Subject: Fixed expression. --- testsuite/pyunit/dom/Expressions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/pyunit/dom/Expressions.py b/testsuite/pyunit/dom/Expressions.py index fe9bf22eb..290216156 100644 --- a/testsuite/pyunit/dom/Expressions.py +++ b/testsuite/pyunit/dom/Expressions.py @@ -34,7 +34,7 @@ import ctypes from inspect import currentframe from pathlib import Path from textwrap import dedent -from typing import TypeVar, Dict +from typing import TypeVar, Dict, cast from unittest import TestCase @@ -89,7 +89,7 @@ class Expressions(TestCase): ) # Define test data - constantDeclartion = "constant c0 : boolean := not true;" + constantDeclartion = "constant c0 : boolean := not True;" # Parse in-memory default: Expression = self.parse(filename, constantDeclartion) @@ -97,7 +97,7 @@ class Expressions(TestCase): # Start checks self.assertIsInstance(default, InverseExpression) self.assertIsInstance(default.Operand, SimpleObjectOrFunctionCallSymbol) - self.assertEqual("true", str(default.Operand)) # .SymbolName)) # XXX: hacked + self.assertEqual("True", cast(SimpleObjectOrFunctionCallSymbol, default.Operand).Name.Identifier) # def test_AbsExpression(self): # filename: Path = self._root / "{className}_{funcName}.vhdl".format( -- cgit v1.2.3