Commit b98583b3 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Add another test for girara_fix_path

parent 4cfa8f3e
......@@ -89,6 +89,11 @@ START_TEST(test_fix_path_basic) {
fail_unless(g_strcmp0(result, "/test/test") == 0,
"Fix path result does not match (got: %s, expected: %s)", result, "test/test", NULL);
g_free(result);
result = girara_fix_path("test");
fail_unless(g_str_has_suffix(result, "/test") == TRUE,
"Fix path result does not match (got: %s, expected: %s)", result, "test/test", NULL);
g_free(result);
} END_TEST
START_TEST(test_fix_path_extended) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment