Lines Matching refs:ndeg
16 int64_t ndeg; member
24 {.ddmm_mmmm = "00.0", .ndeg = 0},
25 {.ddmm_mmmm = "000.0", .ndeg = 0},
26 {.ddmm_mmmm = "9000.0000", .ndeg = 90000000000},
27 {.ddmm_mmmm = "4530.0000", .ndeg = 45500000000},
28 {.ddmm_mmmm = "4530.3000", .ndeg = 45505000000},
29 {.ddmm_mmmm = "4530.3001", .ndeg = 45505001667},
30 {.ddmm_mmmm = "4530.9999", .ndeg = 45516665000},
31 {.ddmm_mmmm = "18000.0000", .ndeg = 180000000000}
38 int64_t ndeg; in ZTEST() local
41 zassert_ok(gnss_nmea0183_ddmm_mmmm_to_ndeg(ddmm_mmmm_samples[i].ddmm_mmmm, &ndeg), in ZTEST()
44 min_ndeg = ddmm_mmmm_samples[i].ndeg - TEST_DDMM_MMMM_MAX_ROUNDING_ERROR_NDEG; in ZTEST()
45 max_ndeg = ddmm_mmmm_samples[i].ndeg + TEST_DDMM_MMMM_MAX_ROUNDING_ERROR_NDEG; in ZTEST()
46 zassert_true(ndeg >= min_ndeg, "Parsed value falls below max rounding error"); in ZTEST()
47 zassert_true(ndeg <= max_ndeg, "Parsed value is above max rounding error"); in ZTEST()
51 zassert_equal(gnss_nmea0183_ddmm_mmmm_to_ndeg("99.0000", &ndeg), -EINVAL, in ZTEST()
54 zassert_equal(gnss_nmea0183_ddmm_mmmm_to_ndeg("60.0000", &ndeg), -EINVAL, in ZTEST()
58 zassert_equal(gnss_nmea0183_ddmm_mmmm_to_ndeg("18000", &ndeg), -EINVAL, in ZTEST()
62 zassert_equal(gnss_nmea0183_ddmm_mmmm_to_ndeg("900#.0a000", &ndeg), -EINVAL, in ZTEST()
66 zassert_equal(gnss_nmea0183_ddmm_mmmm_to_ndeg("-18000.0", &ndeg), -EINVAL, in ZTEST()