ttlappalainen / NMEA0183

Library for handling NMEA0183 messages
76 stars 48 forks source link

Added a testcase for the SetZDA; improved error message #51

Closed Andrei-Errapart closed 1 year ago

Andrei-Errapart commented 1 year ago

The testcase covers only one of the SetZDA overloads.

The error message now includes both the original NMEA0183 string and the end result, which should be equal. Failures are reported in the following manner:

ctest --output-on-failure .... MessagesTest.cpp:46: FAILED: CHECK_THAT( result, Catch::Matchers::Equals(nmea0183) ) with expansion: "$GPZDA,160012.71,11,03,2005,-1,007C" equals: "$GPZDA,160012.71,11,03,2004,- 1,007D" ....