fix test for gga

This commit is contained in:
gdpinchina 2018-09-19 14:38:49 +08:00 committed by GitHub
parent 4514f6dd5e
commit 61c6ef7ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,8 +507,8 @@ END_TEST
START_TEST(test_minmea_parse_gga1) START_TEST(test_minmea_parse_gga1)
{ {
const char *sentence = "$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47"; const char *sentence = "$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47";
struct minmea_sentence_gga frame = { 0 }; struct minmea_sentence_gga frame = {};
struct minmea_sentence_gga expected = { 0 }; struct minmea_sentence_gga expected = {};
expected.time = (struct minmea_time) { 12, 35, 19, 0 }; expected.time = (struct minmea_time) { 12, 35, 19, 0 };
expected.latitude = (struct minmea_float) { 4807038, 1000 }; expected.latitude = (struct minmea_float) { 4807038, 1000 };
expected.longitude = (struct minmea_float) { 1131000, 1000 }; expected.longitude = (struct minmea_float) { 1131000, 1000 };