1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-25 13:49:55 +03:00

compare-operator:unit test

This commit is contained in:
OMOJOLA JOSHUA DAMILOLA
2023-03-27 14:15:40 +00:00
parent 1d5240cfaa
commit 72a992354c

View File

@ -17,6 +17,7 @@ TEST(parse_compare_operator) {
const char *str_e = "!=!="; /* parse_compare_operator() moves the pointer */
assert_se(parse_compare_operator(&str_e, COMPARE_EQUAL_BY_STRING) == COMPARE_STRING_UNEQUAL);
assert_se(parse_compare_operator(&str_e, 0) == COMPARE_UNEQUAL);
assert_se(parse_compare_operator(&str_e, 0) == _COMPARE_OPERATOR_INVALID);
}
TEST(test_order) {