TcUnit icon indicating copy to clipboard operation
TcUnit copied to clipboard

New LDATE/LTIME types are not supported.

Open TheColonel2688 opened this issue 6 months ago • 3 comments

~~FB_TestSuite.AssertEquals_LDATE does not exist~~

~~There is no built in way to assert an LDATE~~

LDATE LDATE_AND_TIME LTIME_OF_DAY are not supported.

TheColonel2688 avatar Jul 10 '25 17:07 TheColonel2688

You can always use AssertEquals() which will compare any data types. Only downside is, the printed error won't be in the provided format and the assertion can't be made with non-variable types (direct comparison with literals).

ZigaJavornik avatar Jul 10 '25 17:07 ZigaJavornik

Also, the LDATE/LDATE types are not supported by TwinCAT < 4026.0. As it stands now, most are still on < 4026.0, so upgrading TcUnit to a compiler that only supports 4026.0 or later isn't a great idea. Support for this will be added when the whole TcUnit toolchain is upgraded to use VS2022 and 4026 only.

sagatowski avatar Jul 10 '25 17:07 sagatowski

That's fair, I'm using CoUnit, and 64 bit date and time types have been in the codesys compiler for quite a while.

TheColonel2688 avatar Jul 10 '25 18:07 TheColonel2688