NMEA 0183 Data Types Unit TestsΒΆ

As described in API Level, the way in which EasyNmea provides applications with NMEA data is through the NMEA 0183 data types (GPGGAData). These types feature == and != operators, so that two samples of the same type can be compared between them. Therefore, a set of unit tests for these operators of each of the types is required:

@startuml
skinparam linetype ortho
hide empty members

class NMEA0183Data
class GPGGAData

NMEA0183Data : bool operator ==(const NMEA0183Data& other) const noexcept
NMEA0183Data : bool operator !=(const NMEA0183Data& other) const noexcept
GPGGAData : bool operator ==(const GPGGAData& other) const noexcept
GPGGAData : bool operator !=(const GPGGAData& other) const noexcept

NMEA0183Data <|-- GPGGAData

@enduml

  1. NMEA0183DataComparisonOperators: Checks that both comparison operators work for NMEA0183Data.

  2. GPGGADataComparisonOperators: Checks that both comparison operators work for GPGGAData.