Lines Matching full:value

14 	int32_t value;  member
18 {.str = "10", .base = 10, .value = 10},
19 {.str = "1", .base = 10, .value = 1},
20 {.str = "002", .base = 10, .value = 2},
21 {.str = "-10", .base = 10, .value = -10},
22 {.str = "-1", .base = 10, .value = -1},
23 {.str = "-002", .base = 10, .value = -2},
24 {.str = "30000000", .base = 10, .value = 30000000},
25 {.str = "-30000000", .base = 10, .value = -30000000},
26 {.str = "00", .base = 16, .value = 0},
27 {.str = "20", .base = 16, .value = 32},
28 {.str = "42", .base = 16, .value = 66},
29 {.str = "122", .base = 16, .value = 290},
30 {.str = "0122", .base = 16, .value = 290},
35 int32_t value; in ZTEST() local
38 zassert_ok(gnss_parse_atoi(atoi_samples[i].str, atoi_samples[i].base, &value), in ZTEST()
41 zassert_equal(atoi_samples[i].value, value, "Parsed value is incorrect"); in ZTEST()
44 zassert_equal(gnss_parse_atoi("a10", 10, &value), -EINVAL, in ZTEST()
47 zassert_equal(gnss_parse_atoi("h#1c", 16, &value), -EINVAL, in ZTEST()
53 int64_t value; member
57 {.str = "10", .value = 10000000000},
58 {.str = "1", .value = 1000000000},
59 {.str = "002", .value = 2000000000},
60 {.str = "-10", .value = -10000000000},
61 {.str = "-1", .value = -1000000000},
62 {.str = "-002", .value = -2000000000},
63 {.str = "30000000", .value = 30000000000000000},
64 {.str = "-30000000", .value = -30000000000000000},
65 {.str = "0.10", .value = 100000000},
66 {.str = "-0.10", .value = -100000000},
67 {.str = "1", .value = 1000000000},
68 {.str = "002.000", .value = 2000000000},
69 {.str = "-002.000", .value = -2000000000},
70 {.str = "0.989812343", .value = 989812343},
71 {.str = "-0.989812343", .value = -989812343},
72 {.str = "0.112211", .value = 112211000},
73 {.str = "-0.112211", .value = -112211000},
74 {.str = "000000000.112211000000000000", .value = 112211000},
75 {.str = "-000000000.11221100000000000", .value = -112211000},
80 int64_t value; in ZTEST() local
83 zassert_ok(gnss_parse_dec_to_nano(dec_to_nano_samples[i].str, &value), in ZTEST()
86 zassert_equal(dec_to_nano_samples[i].value, value, "Parsed value is incorrect"); in ZTEST()
89 zassert_equal(gnss_parse_dec_to_nano("-0s02..000", &value), -EINVAL, in ZTEST()
92 zassert_equal(gnss_parse_dec_to_nano("--002.000", &value), -EINVAL, in ZTEST()
95 zassert_equal(gnss_parse_dec_to_nano("-00s2.000", &value), -EINVAL, in ZTEST()