Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
{ "..", "..", "" },
{ "./", ".", "/" },
{ ".", ".", "" },
+ { "/../a/b/c/d/e", "", "/a/b/c/d/e" },
+ { "/a/b/c/d/../../../../../e", "", "/e" },
};
char **valid_tests_expected_results;
static const int num_valid_tests =
/* Invalid test cases */
static char *invalid_tests_inputs[] = {
NULL,
- "/../a/b/c/d/e",
- "/a/b/c/d/../../../../../e",
};
static const int num_invalid_tests =
sizeof(invalid_tests_inputs) / sizeof(invalid_tests_inputs[0]);