From 26ef8c3e593cec615301b1ad8e04d214663b413b Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Wed, 22 Jan 2020 19:42:01 -0600 Subject: [PATCH] Tests ~ add test case to 'Fix ~ improve portability of path manipulation' --- src/utils/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 864db6a..f8bf7df 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -310,6 +310,7 @@ mod tests { assert!(!is_a_parent_of("/usr/", "/usr")); assert!(!is_a_parent_of("/usr/andy", "/usr")); assert!(!is_a_parent_of("/usr/andy", "/usr/sibling")); + assert!(!is_a_parent_of("/usr/folder", "/usr/folder_not_a_child")); } #[test]