Lines Matching refs:assert_se
39 assert_se(sd_id128_randomize(&id) == 0);
42 assert_se(sd_id128_from_string(t, &id2) == 0);
43 assert_se(sd_id128_equal(id, id2));
46 assert_se(sd_id128_get_machine(&id) == 0);
49 assert_se(sd_id128_get_boot(&id) == 0);
54 assert_se(streq(t, STR_WALDI));
56 assert_se(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)) == 32);
58 assert_se(streq(t, b));
60 assert_se(sd_id128_from_string(UUID_WALDI, &id) >= 0);
61 assert_se(sd_id128_equal(id, ID128_WALDI));
63 assert_se(sd_id128_from_string("", &id) < 0);
64 assert_se(sd_id128_from_string("01020304-0506-0708-090a-0b0c0d0e0f101", &id) < 0);
65 assert_se(sd_id128_from_string("01020304-0506-0708-090a-0b0c0d0e0f10-", &id) < 0);
66 assert_se(sd_id128_from_string("01020304-0506-0708-090a0b0c0d0e0f10", &id) < 0);
67 assert_se(sd_id128_from_string("010203040506-0708-090a-0b0c0d0e0f10", &id) < 0);
69 assert_se(id128_is_valid(STR_WALDI));
70 assert_se(id128_is_valid(UUID_WALDI));
71 assert_se(!id128_is_valid(""));
72 assert_se(!id128_is_valid("01020304-0506-0708-090a-0b0c0d0e0f101"));
73 assert_se(!id128_is_valid("01020304-0506-0708-090a-0b0c0d0e0f10-"));
74 assert_se(!id128_is_valid("01020304-0506-0708-090a0b0c0d0e0f10"));
75 assert_se(!id128_is_valid("010203040506-0708-090a-0b0c0d0e0f10"));