-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete assert message is not shown if the TcUnit part exceeds approx 250 chars #250
Comments
Du to this limitation in message length, it would be nice if you changed the Assert methods to return a boolean value as a quick workaround.
|
Another idea for a workaround (I still would like to see the
The same could be done if the wrapping would already have to be done in EXP or ACT. |
We can't change the return-value of the assert as that is a change in the API. |
@TobiasKnauss Agree with the expected behaviour. PR welcome. Full length is not possible as we are dependent on ADSLOGSTR(). |
@sagatowski I already thought of creating a PR with changes to return BOOL values. You're right, changing the existing API is not an option, so I would simply add another set of functions that internally call each other. I don't have the TE1200 license yet. Would it work to call the new
The matter of contributing... to the football club, to the fire fighters, to the job and family and friends... The day has 24 hours plus the night. ;-) |
Describe the bug
The complete assert message is not shown if it exceeds a certain length. It is not cut-off, but just omitted.
To Reproduce
Output:
If the texts of Expected and Actual are longer, the possible message length becomes shorter.
Expected behavior
See the message with text "FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5_FAIL_5___Len1", either in full length of cut off.
Software versions
Run environment
Laptop
Additional context
None that seems relevant.
The text was updated successfully, but these errors were encountered: