tcunit / TcUnit

An unit testing framework for Beckhoff's TwinCAT 3
Other
258 stars 72 forks source link

Adding empty string as actual-string to assert_string doesn't show the actual string #224

Closed sagatowski closed 9 months ago

sagatowski commented 10 months ago

Describe the bug Doing as the title suggest will give this: image

In other words, it doesn't show any ACT.

To Reproduce Run TcUnit AssertEquals_STRING() with an empty Actual-string.

Software versions TcUnit 1.2, XAE 3.1.4024.53.

sagatowski commented 9 months ago

The opposite is true as well, i.e. if Expected is not provided, it will not be presented:

image
sagatowski commented 9 months ago

This makes much more sense:

image image
sagatowski commented 9 months ago

Solved. Added new tests added to verify this functionality.