Lines Matching refs:parse_uid_range
436 TEST(parse_uid_range) { in TEST() argument
439 assert_se(parse_uid_range("", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST()
440 assert_se(parse_uid_range(" ", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST()
441 assert_se(parse_uid_range("x", &a, &b) == -EINVAL && a == 4711 && b == 4711); in TEST()
443 assert_se(parse_uid_range("0", &a, &b) >= 0 && a == 0 && b == 0); in TEST()
444 assert_se(parse_uid_range("1", &a, &b) >= 0 && a == 1 && b == 1); in TEST()
445 assert_se(parse_uid_range("2-2", &a, &b) >= 0 && a == 2 && b == 2); in TEST()
446 assert_se(parse_uid_range("3-3", &a, &b) >= 0 && a == 3 && b == 3); in TEST()
447 assert_se(parse_uid_range("4-5", &a, &b) >= 0 && a == 4 && b == 5); in TEST()
449 assert_se(parse_uid_range("7-6", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
450 assert_se(parse_uid_range("-1", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
451 assert_se(parse_uid_range("01", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
452 assert_se(parse_uid_range("001", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
453 assert_se(parse_uid_range("+1", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
454 assert_se(parse_uid_range("1--1", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
455 assert_se(parse_uid_range(" 1", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
456 assert_se(parse_uid_range(" 1-2", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
457 assert_se(parse_uid_range("1 -2", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
458 assert_se(parse_uid_range("1- 2", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
459 assert_se(parse_uid_range("1-2 ", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
460 assert_se(parse_uid_range("01-2", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
461 assert_se(parse_uid_range("1-02", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
462 assert_se(parse_uid_range("001-2", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
463 assert_se(parse_uid_range("1-002", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()
464 assert_se(parse_uid_range(" 01", &a, &b) == -EINVAL && a == 4 && b == 5); in TEST()