tcunit / TcUnit

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

The method "AssertEquals_WORD" of FB_TestSuite sets the wrong type "Type_UINT" #184

Closed JoergWitt closed 2 years ago

JoergWitt commented 2 years ago

Describe the bug The AssertEquals_WORD writes type Type_UINT into the AssertionType field of the "Tests" array. The reason for that is the use of the wrong parameter E_AssertionType.Type_UINT by caling the method "SetTestFailed() in line 19.

Additional context

AssertEquals_WORD

sagatowski commented 2 years ago

@JoergWitt Thanks for finding this issue. This is clearly a bug. @JoergWitt Do you want to create a pull request for this single line in the code?

JoergWitt commented 2 years ago

@sagatowski Yes, I will create a pull request.

sagatowski commented 2 years ago

Solved in 47e3198