ASSERT_STREQ for simple cases
This commit is contained in:
committed by
Daan De Meyer
parent
9506269d12
commit
c79e88b37d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user