aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-16 11:17:29 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-16 11:17:29 +0200
commita211cdcf7d5eb5f058d2e38c93092f4548283451 (patch)
tree5e446e45ca807be156f8063269e3dba0f078fff9
parentc3d8e45a45b758bc9dcc38390408e39e01c7be4c (diff)
downloadghdl-a211cdcf7d5eb5f058d2e38c93092f4548283451.tar.gz
ghdl-a211cdcf7d5eb5f058d2e38c93092f4548283451.tar.bz2
ghdl-a211cdcf7d5eb5f058d2e38c93092f4548283451.zip
Fixed expression.
-rw-r--r--testsuite/pyunit/dom/Expressions.py6
1 files 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(
#n146'>146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237