ASSERT_STREQ for simple cases

This commit is contained in:
Ivan Kruglov
2024-04-15 08:13:50 +02:00
committed by Daan De Meyer
parent 9506269d12
commit c79e88b37d
93 changed files with 1502 additions and 1502 deletions
+2 -2
View File
@@ -20,10 +20,10 @@ TEST(parse_path_argument) {
_cleanup_free_ char *path = NULL;
assert_se(parse_path_argument("help", false, &path) == 0);
assert_se(streq(basename(path), "help"));
ASSERT_STREQ(basename(path), "help");
assert_se(parse_path_argument("/", false, &path) == 0);
assert_se(streq(path, "/"));
ASSERT_STREQ(path, "/");
assert_se(parse_path_argument("/", true, &path) == 0);
ASSERT_NULL(path);