15 empty_input_string(
void)
26 missing_separator(
void)
31 g_assert_cmpint(start, ==, 1234);
32 g_assert_cmpint(end, ==, 1234);
53 g_assert_cmpint(start, ==, 2000);
65 g_assert_cmpint(end, ==, 2020);
69 range_start_and_end(
void)
75 g_assert_cmpint(start, ==, 2000);
76 g_assert_cmpint(end, ==, 2020);
95 int main(
int argc,
char **argv)
97 g_test_init(&argc, &argv, NULL);
99 g_test_add_func(
"/common/strings/range/empty", empty_input_string);
100 g_test_add_func(
"/common/strings/range/no_sep", missing_separator);
101 g_test_add_func(
"/common/strings/range/only_sep", only_separator);
102 g_test_add_func(
"/common/strings/range/no_end", no_range_end);
103 g_test_add_func(
"/common/strings/range/no_start", no_range_start);
104 g_test_add_func(
"/common/strings/range/start_and_end", range_start_and_end);
106 g_test_add_func(
"/common/strings/range/garbage", garbage);
int main(int argc, char **argv)
#define PCMK__PARSE_INT_DEFAULT
int pcmk__parse_ll_range(const char *srcstring, long long *start, long long *end)