Overflow Exception when AssertEquals_Bool or AssertEquals_STRING #230
Replies: 3 comments 1 reply
-
Hi @andimin182. Not enough context. Can you provide the following information: To Reproduce Screenshots Software versions Run environment Do you have a working example of this problem that you can share? |
Beta Was this translation helpful? Give feedback.
-
There is no version 1.2.1 of TcUnit. Please download of the releases, preferably the latest one. If this doesn't work, please upload an example project that reproduces the error. |
Beta Was this translation helpful? Give feedback.
-
It's very hard for me to see what's happening, but is it possible that you are asserting a property? |
Beta Was this translation helpful? Give feedback.
-
Hey there,
I'm having quiet a lot of problem with a recurrent Overflow Exception when running the tests in TcUnit. I debugged the problem and i identify that this exception is thrown by the function:
AssertMessageFormatter.LogAssertFailure(Expected := BOOL_TO_STRING(Expected),
Actual := BOOL_TO_STRING(Actual),
Message := Message,
TestInstancePath := TestInstancePath);
In fact, in my case, there is a test that failes, hence it logs the failure but it gives me an overflow exception instead of correctly log the failure. I couldn't identify which argument is in overflow and why...
A second case, when instead the result == expected, Overflow exception is raised in another function that is:
AssertResults.ReportResult(ExpectedSize := SIZEOF(Expected),
ExpectedTypeClass := IBaseLibrary.TypeClass.TYPE_BOOL,
ExpectedValue := ADR(Expected),
ActualSize := SIZEOF(Actual),
ActualTypeClass := IBaseLibrary.TypeClass.TYPE_BOOL,
ActualValue := ADR(Actual),
Message := Message,
TestInstancePath := TestInstancePath,
AlreadyReported => AlreadyReported);
Does anyone else had this problem and know how to solve it? I'm not sure if it's something that i do wrong in my PLC library or depends entirely on the TcUnit library...
Thanks in advance for the support.
Beta Was this translation helpful? Give feedback.
All reactions